12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- server:
- port: 11000
- spring:
- profiles:
- active: dev
- include: orm,cache,msg,shiro
- application:
- name: biz # 服务名称,改成自己的,名称固定不变,不要随便更改
- http:
- converters:
- preferred-json-mapper: jackson
- jackson:
- date-format: yyyy-MM-hh HH:mm
- deserialization:
- fail-on-unknown-properties: false # 多余字段反序列化过滤
- aop:
- auto: true
- proxy-target-class: true #false为启用jdk默认动态代理,true为cglib动态代理
- freemarker:
- prefer-file-system-access: false
- #服务注册于发现配置
- eureka:
- instance:
- hostname: localhost
- prefer-ip-address: true
- ip-address: 192.168.1.96 # 把自己的ip替换
- client:
- register-with-eureka: true
- fetch-registry: true
- service-url:
- registry1: http://192.168.1.206:11001/eureka/
- ---
- spring:
- profiles: dev
- swagger:
- open: true
- eureka:
- client:
- service-url:
- defaultZone: http://192.168.1.206:11001/eureka/
- register-with-eureka: true
- fetch-registry: true
- ---
- spring:
- profiles: prod
- server:
- port: 10000 # 生产环境端口号
- swagger:
- open: false
|