application.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. server:
  2. port: 8000
  3. spring:
  4. application:
  5. name: user-service # 项目名称尽量用小写
  6. datasource:
  7. name: test
  8. url: jdbc:mysql://135.192.86.200:31057/flow_app
  9. username: flow
  10. password: flow#1223
  11. #使用druid数据源
  12. type: com.alibaba.druid.pool.DruidDataSource
  13. driver-class-name: com.mysql.jdbc.Driver
  14. filters: stat
  15. maxActive: 20
  16. initialSize: 1
  17. maxWait: 60000
  18. minIdle: 1
  19. timeBetweenEvictionRunsMillis: 60000
  20. minEvictableIdleTimeMillis: 300000
  21. validationQuery: select 'x'
  22. testWhileIdle: true
  23. testOnBorrow: false
  24. testOnReturn: false
  25. poolPreparedStatements: true
  26. maxOpenPreparedStatements: 20
  27. activemq:
  28. in-memory: true
  29. pool:
  30. enabled: false
  31. logging:
  32. file: ./UserService/logs/UserService.log
  33. level:
  34. root: INFO
  35. com.java110.user: ERROR
  36. eureka:
  37. client:
  38. serviceUrl:
  39. defaultZone: http://discovery:8761/eureka/ # 指定注册中心的地址, http://discovery:8762/eureka/
  40. instance:
  41. preferIpAddress: true