application.properties 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # ####################################################################################################
  2. # 服务端配置
  3. server.port=8099
  4. server.servlet.context-path=/
  5. server.tomcat.uri-encoding=UTF-8
  6. # ####################################################################################################
  7. # thymeleaf 配置
  8. spring.thymeleaf.cache=false
  9. spring.thymeleaf.jackson.time-zone=GMT+8
  10. spring.thymeleaf.jackson.date-format=yyyy-MM-dd HH:mm:ss
  11. # ####################################################################################################
  12. # 数据源配置
  13. spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
  14. spring.datasource.url=jdbc:mysql://118.190.47.230:3306/cloud_model?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
  15. spring.datasource.username=root
  16. spring.datasource.password=p011430seya10
  17. #spring.datasource.druid.test-on-borrow=true
  18. #spring.datasource.druid.test-while-idle=true
  19. # ####################################################################################################
  20. # MyBatis 配置
  21. mybatis.mapper-locations=mappers/*Mapper.xml
  22. mybatis.type-aliases-package=com.hssx.cloudmodel.entity/*
  23. # 控制台输出SQL语句
  24. logging.level.com.hssx.cloudmodel.mapper = debug
  25. # ####################################################################################################
  26. #配置Session
  27. spring.session.store-type=none
  28. # ####################################################################################################
  29. #成功页面跳转
  30. spring.thymeleaf.prefix=classpath:/static/
  31. ######################################################################################################
  32. ## redis 配置
  33. #spring.redis.host=localhost
  34. #spring.redis.port=6379
  35. ######################################################################################################
  36. # 文件上传路径
  37. upload.path=D:/cloud/upload/
  38. #######################################################################################################
  39. # 配置上传文件的大小设置
  40. # Single file max size 即单个文件大小
  41. spring.servlet.multipart.max-file-size=10MB
  42. spring.servlet.multipart.max-request-size=100MB