| 1234567891011121314151617181920212223242526272829303132333435 |
- # Tomcat
- server:
- port: 9300
- # Spring
- spring:
- application:
- # 应用名称
- name: zd-file
- profiles:
- # 环境配置
- active: dev
- cloud:
- nacos:
- discovery:
- # 服务注册地址
- server-addr: ${NACOS_HOST:127.0.0.1}:${NACOS_PORT:8848}
- config:
- # 配置中心地址
- server-addr: ${NACOS_HOST:127.0.0.1}:${NACOS_PORT:8848}
- # 配置文件格式
- file-extension: yml
- # 共享配置
- shared-configs:
- - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
- # mybatis配置
- mybatis:
- # 搜索指定包别名
- typeAliasesPackage: com.zd.base
- # 配置mapper的扫描,找到所有的mapper.xml映射文件
- mapperLocations: classpath:mapper/**/*.xml
- configuration:
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- call-setters-on-nulls: true
|