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 type-handlers-package: com.dy.pipIrrGlobal.pojoBa.MySqlJsonHandler pipIrr: global: dev: true #是否开发阶段,true或false dsName: ym #开发阶段,设置临时的数据库名称 mw: webPort: 8070 actutorPort: 9070 idSuffix: 0 sso: checkUrl: http://127.0.0.1:8079/sso/sso/ssoCheck webPort: 8079 actutorPort: 9079 idSuffix: 1 base: webPort: 8080 actutorPort: 9080 idSuffix: 2 remote: webPort: 8081 actutorPort: 9081 idSuffix: 3 statistics: webPort: 8082 actutorPort: 9082 idSuffix: 4 gis: webPort: 8083 actutorPort: 9083 idSuffix: 5 demo: webPort: 8000 actutorPort: 9000 idSuffix: 99 sell: webPort: 8084 actutorPort: 9084 idSuffix: 6 project: webPort: 8085 actutorPort: 9085 idSuffix: 7 irrigate: webPort: 8086 actutorPort: 9086 idSuffix: 8 wechat: webPort: 8087 actutorPort: 9087 idSuffix: 9 app: webPort: 8088 actutorPort: 9088 idSuffix: 10 #项目编号 #projectCode: # ym: 100 # pj: 101 #通讯协议 #protocol: DYJS_2023,DYJS_2024