application.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. server:
  2. port: 11000
  3. spring:
  4. profiles:
  5. active: dev
  6. include: orm,cache,msg,shiro
  7. application:
  8. name: biz # 服务名称,改成自己的,名称固定不变,不要随便更改
  9. http:
  10. converters:
  11. preferred-json-mapper: jackson
  12. jackson:
  13. date-format: yyyy-MM-hh HH:mm
  14. deserialization:
  15. fail-on-unknown-properties: false # 多余字段反序列化过滤
  16. aop:
  17. auto: true
  18. proxy-target-class: true #false为启用jdk默认动态代理,true为cglib动态代理
  19. freemarker:
  20. prefer-file-system-access: false
  21. #服务注册于发现配置
  22. eureka:
  23. instance:
  24. hostname: localhost
  25. prefer-ip-address: true
  26. ip-address: 192.168.1.96 # 把自己的ip替换
  27. client:
  28. register-with-eureka: true
  29. fetch-registry: true
  30. service-url:
  31. registry1: http://192.168.1.206:11001/eureka/
  32. ---
  33. spring:
  34. profiles: dev
  35. swagger:
  36. open: true
  37. eureka:
  38. client:
  39. service-url:
  40. defaultZone: http://192.168.1.206:11001/eureka/
  41. register-with-eureka: true
  42. fetch-registry: true
  43. ---
  44. spring:
  45. profiles: prod
  46. server:
  47. port: 10000 # 生产环境端口号
  48. swagger:
  49. open: false