2024年2月3日发(作者:)
修改
server: port: 8080
spring: datasource: driver-class-name: url: jdbc:mysql://127.0.0.1:3306/aop?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull username: root password: 123456
# Mybatis-plus配置mybatis-plus: mapper-locations: classpath:mapper/*.xml global-config: db-config: id-type: AUTO# configuration:# # 打印sql# log-impl: Impl创建公共参数类
if (size * 1000 % 10 > 0) { precision = 3; } else if (size * 100 % 10 > 0) { precision = 2; } else if (size * 10 % 10 > 0) { precision = 1; } else { precision = 0; } String formatStr = "%." + precision + "f"; if ("KB".equals(type)) { return (formatStr, (size)) + "KB"; } else if ("MB".equals(type)) { return (formatStr, (size)) + "MB"; } else if ("GB".equals(type)) { return (formatStr, (size)) + "GB"; } else if ("TB".equals(type)) { return (formatStr, (size)) + "TB"; } else if ("PB".equals(type)) { return (formatStr, (size)) + "PB"; } return (formatStr, (size)) + "B"; }}创建线程池配置类
本文发布于:2024-02-03 23:01:27,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170697248751494.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |