bootstrap.yml 885 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Tomcat
  2. server:
  3. port: 9300
  4. # Spring
  5. spring:
  6. application:
  7. # 应用名称
  8. name: zd-file
  9. profiles:
  10. # 环境配置
  11. active: dev
  12. cloud:
  13. nacos:
  14. discovery:
  15. # 服务注册地址
  16. server-addr: ${NACOS_HOST:127.0.0.1}:${NACOS_PORT:8848}
  17. config:
  18. # 配置中心地址
  19. server-addr: ${NACOS_HOST:127.0.0.1}:${NACOS_PORT:8848}
  20. # 配置文件格式
  21. file-extension: yml
  22. # 共享配置
  23. shared-configs:
  24. - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
  25. # mybatis配置
  26. mybatis:
  27. # 搜索指定包别名
  28. typeAliasesPackage: com.zd.base
  29. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  30. mapperLocations: classpath:mapper/**/*.xml
  31. configuration:
  32. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  33. call-setters-on-nulls: true