1234567891011121314151617181920 |
- server:
- port: 18011
- # 指定当前服务的名称,这个名称会注册到注册中心
- spring:
- application:
- name: @artifactId@
- cloud:
- config: # Config客户端配置
- profile: @activatedProperties@ # 启用配置后缀名称
- label: master # 分支名称
- #uri: http://localhost:18001 # 配置中心地址(本地)
- # uri: http://47.119.112.46:18001 # 配置中心地址(测试环境)
- uri: http://120.79.162.1:18001 # 配置中心地址(正式环境)
- name: user # 配置文件名称
- mybatis:
- # 扫描classpath中mapper目录下的映射配置文件,针对于映射文件放到了resources目录下
- mapper-locations: classpath:/mapper/*.xml
- # 定义包别名,使用pojo时可以直接使用pojo的类型名称不用加包名
- type-aliases-package: com.caimei365.user.model
|