application-prod.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. dwsurvey:
  2. site: 'local'
  3. web:
  4. file-path: ~/Documents/target/
  5. back-site:
  6. mode: auto
  7. url: http://localhost:8282/dwsurvey
  8. up:
  9. file-type:
  10. anon: JPEG,PNG,GIF
  11. user: JPEG,PNG,GIF,XLS
  12. info:
  13. site-name: 调问网
  14. site-url: http://www.diaowen.net
  15. site-icp: 京ICP备13050030号-3
  16. site-mail: service@diaowen.net
  17. site-phone: 18888888888
  18. version:
  19. info: DWSurvey OSS V4.0 Spring Boot
  20. number: OSS V4.0
  21. built: 2021/11/21
  22. # mysql
  23. server:
  24. port: 8080
  25. spring:
  26. web:
  27. resources:
  28. static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${dwsurvey.web.file-path}
  29. mvc:
  30. static-path-pattern: /**
  31. view:
  32. prefix: /WEB-INF/page/content
  33. suffix: .jsp
  34. datasource:
  35. #type: com.alibaba.druid.pool.DruidDataSource
  36. url: jdbc:mysql://localhost:3306/dwsurvey_21test?useUnicode=true&characterEncoding=utf8
  37. username: root
  38. password: 123456,.
  39. jpa:
  40. database: mysql
  41. generate-ddl: true
  42. show-sql: true
  43. hibernate:
  44. ddl-auto: update
  45. # naming:
  46. # implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl #指定jpa的自动表生成策略,驼峰自动映射为下划线格式
  47. properties:
  48. hibernate:
  49. #是否自动打印hql对应的sql语句
  50. show-sql: false
  51. #是否格式化sql语句
  52. format-sql: false
  53. #事务交由spring管理
  54. current_session_context_class: org.springframework.orm.hibernate5.SpringSessionContext
  55. cache:
  56. use_second_level_cache: false
  57. use_query_cache: false
  58. logging:
  59. level:
  60. net:
  61. diaowen: INFO
  62. org:
  63. hibernate: ERROR
  64. apache: ERROR