application-dev.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. server:
  2. port: 8090
  3. spring:
  4. application:
  5. name: huimv-eartag2-input
  6. datasource:
  7. url: jdbc:mysql://192.168.1.7:3306/huimv_demo?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  8. username: root
  9. password: hm123456
  10. driver-class-name: com.mysql.cj.jdbc.Driver
  11. jpa:
  12. show-sql: true
  13. database: mysql
  14. hibernate:
  15. ddl-auto: update
  16. database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
  17. open-in-view: true
  18. data:
  19. redis:
  20. repositories:
  21. enabled: false
  22. #是否缓存空值
  23. cache:
  24. redis:
  25. cache-null-values: false
  26. #server:
  27. # port: 9110
  28. #spring:
  29. # application:
  30. # name: huimv-hy-autoGetData
  31. #
  32. # datasource:
  33. ## url: jdbc:mysql://47.98.175.112:3306/huimv_ql_farm_haiyan?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  34. # # url: jdbc:mysql://36.22.189.214:3306/huimv_ql_farm?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  35. # url: jdbc:mysql://192.168.1.7:3306/huimv_ql_farm?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  36. # username: root
  37. # password: hm123456
  38. # driver-class-name: com.mysql.cj.jdbc.Driver
  39. # jpa:
  40. # properties:
  41. # hibernate:
  42. # enable_lazy_load_no_trans: true
  43. # show-sql: true
  44. # database: mysql
  45. # hibernate:
  46. # ddl-auto: update
  47. # database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
  48. # open-in-view: true
  49. management:
  50. endpoints:
  51. web:
  52. exposure:
  53. include: "*" # * 在yaml 文件属于关键字,所以需要加引号
  54. mybatis-plus:
  55. configuration:
  56. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  57. # mapper.xml文件所存放的位置
  58. mapper-locations: classpath*:com/huimv/lamp/mapper/xml/*.xml # 不加这一行出错:“org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)”
  59. # mapper-locations: classpath:com/huimv/center/mappers/**/*Mapper.xml