logging: charset: console: UTF-8 config: classpath: log4j2.yml #禁用白标错误页面 server: error: whitelabel: enabled: false #servlet配置 servlet: encoding: #取消默认的字符集编码 enabled: true #设置强制使用指定字符编码集 force: true #使用的字符编码 charset: utf-8 # actuator配置,先include了全部,然后再exclude指定的endpoint management: endpoints: web: exposure: include: '*' #exclude: beans .shutdown: enabled: true #是否开启/actuator/shutdown # SpringDoc-OpenApi 配置 springdoc: swagger-ui: #应用actuator时,访问: http://[IP]:[port]/actuator/swagger-ui/index.html 例如http://127.0.0.1:9080/actuator/swagger-ui/index.html #未用actuator时,访问: http://[IP]:[port]/[context]/swagger-ui/index.html 例如http://127.0.0.1:8080/[子系统上下文(base)]/swagger-ui/index.html path: /swagger-ui operationsSorter: method # HTTP 方法排序 tagsSorter: alpha # API 排序 api-docs: path: /v3/apiDocs groups: enabled: true show-actuator: true #在actuator配置的端口及上下文中访问 SpringDoc-OpenApi use-management-port: true #应用actuator配置的端口,但上面的swagger-ui:path只会采用默认值swagger-ui packages-to-scan: com.dy #paths-to-match: /sys/**, /demo/**, /** paths-to-match: /** web: title: 大禹节水管灌监控系统API description: 大禹节水管灌监控系统服务端 Restfull API version: v1.0.0 license-name: 大禹节水研究院 #MybatisPlus 配置日志显示执行SQL mybatis-plus: #匹配sql语句的映射文件的位置,classpath代表在resources下 mapper-locations: classpath:mapper/*.xml #以下两个配置可以省略,在mapper映射文件中配置“@Mapper”也是可以的。 #使用type-aliases-package中指定entity扫描包路径,让mybatis自动扫描自定义的entity #type-aliases-package: com.dy.pipIrrGlobal.daoBa configuration: #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #时而输出日志,时而不输出日志 log-impl: org.apache.ibatis.logging.log4j2.Log4j2Impl #开启驼峰uName自动映射到u_name #2023-10-24经实验,下面配置true或false,都能从u_name映射到uName #map-underscore-to-camel-case: true lazyLoadingEnabled: true # 开启延时加载开关 aggressiveLazyLoading: false # 将积极加载改为消极加载(即按需加载),默认值是false lazy-load-trigger-methods: "" # 阻挡不相干的操作触发,实现懒加载 cache-enabled: true #打开全局缓存开关(二级环境),默认值是true default-enum-type-handler: com.dy.common.mybatis.envm.EnumCodeTypeHandler pipIrr: demo: webPort: 8000 actutorPort: 9000 sso: checkUrl: http://127.0.0.1:8888/sso/sso/ssoCheck webPort: 8080 actutorPort: 9080 base: webPort: 8080 actutorPort: 9080 remote: webPort: 8080 actutorPort: 9080 statistics: webPort: 8080 actutorPort: 9080 gis: webPort: 8080 actutorPort: 9080