获取当前数据库连接数 @Resource privateDruidDataSourcedruidDataSource; intactiveCount=druidDataSource.getActiveCount(); intactivePeak=druidDataSource.getActivePeak(); LOG.info("当前连接数:{},最高峰值连接数:{}",activeCount,activePeak); 根据日志查看接口不是一直卡,高峰期卡顿 然后看了其中一个比较慢的 这里只有一个查询而且sql执行很快 ...
publicinterfacePlanDayMapperextendsMPJBaseMapper<PwPlanDayPO>{ } MPJLambdaWrapper<PwPlanDayPO>wrapper=MPJWrappers.lambdaJoin(PwPlanDayPO.class); wrapper.leftJoin(SysStaffPO.class,SysStaffPO::getStaffId,PwPlanDayPO::getLeadCode) .eq(PwPlanDayPO::getId,"14026b06-d626-4099-adfe-91679f41c...
配置 mybatis-plus: configuration: map-underscore-to-camel-case:true cache-enabled:false global-config: db-config: column-underline:true db-type:mysql refresh:false type-handlers-package:com.peony.common.typehandlers 自定义类型转换类 packagecom.peony.common.typehandlers; importcom.peony.common.util....
配置安全组,开放8081端口 更改nginx配置,接口8081端口,并重启nginx nginx-sreload 搜索 复制
查看nginx是否启动、查看nginx安装目录 ps -ef |grep nginx命令结果解释:nginx运行的主线程 两个辅助线程 最后一个是这个命令执行本身的进程 在Nginx服务启动的状态下,重新加载nginx.conf这个配置文件linux下 nginx -s reload 搜索 复制