application.properties 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # 配置项目信息
  2. server.servlet.context-path=/
  3. server.port=8089
  4. # 获取pom文件中project.version值
  5. version=@project.version@
  6. # 配置数据源
  7. spring.profiles.active=dev
  8. # 配置时区
  9. spring.jackson.time-zone=GMT+8
  10. # 配置文件请求大小设置
  11. spring.servlet.multipart.max-file-size=50MB
  12. spring.servlet.multipart.max-request-size=50MB
  13. # page helper分页插件配置
  14. pagehelper.helperDialect=mysql
  15. pagehelper.reasonable=true
  16. pagehelper.supportMethodsArguments=true
  17. pagehelper.params=count=countSql
  18. # 配置日志
  19. logging.level.com.sw=debug
  20. logging.file.path=./logs/pmp
  21. # ***解决swagger2.9.2版本“@ApiModelProperty”注解“example”属性不填时的报错问题
  22. logging.level.io.swagger.models.parameters.AbstractSerializableParameter:error
  23. # 配置请求信息
  24. spring.session.timeout=0
  25. server.max-http-header-size=1024000
  26. # thymeleaf的基本配置
  27. spring.thymeleaf.encoding=UTF-8
  28. spring.thymeleaf.cache=false
  29. spring.thymeleaf.mode=HTML
  30. spring.thymeleaf.servlet.content-type=text/html
  31. spring.thymeleaf.prefix=classpath:/view/
  32. spring.thymeleaf.suffix=.html
  33. ############# 配置mybatis #############
  34. # 驼峰转换
  35. mybatis-plus.configuration.map-underscore-to-camel-case=true
  36. # 实体类地址
  37. mybatis-plus.typeAliasesPackage=com.gonghang.h5clientapp.beans.dto
  38. # xml文件地址
  39. mybatis-plus.mapper-locations=classpath:/mapper/*.xml
  40. # 接收null字段
  41. mybatis-plus.configuration.call-setters-on-nulls=true
  42. # 删除值
  43. mybatis-plus.global-config.db-config.logic-delete-value=1
  44. mybatis-plus.global-config.db-config.logic-not-delete-value=0