application.yml 958 B

1234567891011121314151617181920212223242526272829303132333435363738
  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:3306/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. logging:
  28. file: ./logs/UserService.log
  29. level:
  30. root: INFO
  31. com.java110.user: ERROR
  32. eureka:
  33. client:
  34. serviceUrl:
  35. defaultZone: http://discovery:8761/eureka/ # 指定注册中心的地址, http://discovery:8762/eureka/
  36. instance:
  37. preferIpAddress: true