企业列表出来了

master
法外狂徒张三 2024-09-09 02:44:38 +08:00
parent 3e35ffaa97
commit c3ed11c3dd
8 changed files with 138 additions and 12 deletions

View File

@ -5,10 +5,7 @@
</component>
<component name="ChangeListManager">
<list default="true" id="72651396-d9d2-4022-b080-e21d75d1bedb" name="更改" comment="企业列表出来了">
<change afterPath="$PROJECT_DIR$/cloud-market-common/src/main/java/com/muyu/market/utils/SecurityAESTool.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cloud-market-common/src/main/java/com/muyu/market/config/JavaGetConfig.java" beforeDir="false" afterPath="$PROJECT_DIR$/cloud-market-common/src/main/java/com/muyu/market/config/JavaGetConfig.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/logs/cloud-system/error.log" beforeDir="false" afterPath="$PROJECT_DIR$/logs/cloud-system/error.log" afterDir="false" />
<change beforePath="$PROJECT_DIR$/logs/cloud-system/info.log" beforeDir="false" afterPath="$PROJECT_DIR$/logs/cloud-system/info.log" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@ -190,14 +187,7 @@
<workItem from="1725671427915" duration="175000" />
<workItem from="1725706338514" duration="6144000" />
<workItem from="1725757403389" duration="14577000" />
<workItem from="1725794176067" duration="9362000" />
</task>
<task id="LOCAL-00018" summary="初始化">
<created>1724910937292</created>
<option name="number" value="00018" />
<option name="presentableId" value="LOCAL-00018" />
<option name="project" value="LOCAL" />
<updated>1724910937292</updated>
<workItem from="1725794176067" duration="10803000" />
</task>
<task id="LOCAL-00019" summary="初始化">
<created>1724913131254</created>
@ -535,7 +525,14 @@
<option name="project" value="LOCAL" />
<updated>1725800611538</updated>
</task>
<option name="localTasksCounter" value="67" />
<task id="LOCAL-00067" summary="企业列表出来了">
<created>1725804923135</created>
<option name="number" value="00067" />
<option name="presentableId" value="LOCAL-00067" />
<option name="project" value="LOCAL" />
<updated>1725804923135</updated>
</task>
<option name="localTasksCounter" value="68" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">

View File

@ -0,0 +1,9 @@
package com.muyu.market.domain;
import lombok.Data;
@Data
public class UserRole {
private Long userId;
private Long roleId;
}

View File

@ -10,12 +10,14 @@ import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.common.security.utils.SecurityUtils;
import com.muyu.market.config.JavaGetConfig;
import com.muyu.market.config.MobileLocationConfig;
import com.muyu.market.config.SimpleWeatherConfig;
import com.muyu.market.config.ThirdPartyConfig;
import com.muyu.market.domain.Standing;
import com.muyu.market.domain.SysApitype;
import com.muyu.market.domain.UserRole;
import com.muyu.market.service.ISysApitypeService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
@ -126,4 +128,14 @@ public class SysApitypeController extends BaseController
public String standing(@RequestBody Standing standing) throws Exception{
return JavaGetConfig.standing(standing);
}
@PostMapping("/standing/{res}")
public Result updateCreateByUserId(@PathVariable Integer res) {
Long userId = SecurityUtils.getUserId();
UserRole userRole = sysApitypeService.selectUserRoleByUserId(userId);
if(res!=1||userRole!=null){
return Result.error();
}
return Result.success(sysApitypeService.updateCreateByUserId(userId));
}
}

View File

@ -3,6 +3,7 @@ package com.muyu.market.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.market.domain.SysApitype;
import com.muyu.market.domain.UserRole;
import org.springframework.stereotype.Service;
@ -16,6 +17,9 @@ import java.util.List;
*/
public interface SysApitypeMapper extends BaseMapper<SysApitype> {
Integer updateCreateByUserId(Long userId);
UserRole selectUserRoleByUserId(Long userId);
/**
*
*

View File

@ -2,6 +2,7 @@ package com.muyu.market.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.market.domain.SysApitype;
import com.muyu.market.domain.UserRole;
import org.springframework.stereotype.Service;
import java.util.List;
@ -14,6 +15,9 @@ import java.util.List;
*/
@Service
public interface ISysApitypeService extends IService<SysApitype> {
Integer updateCreateByUserId(Long userId);
UserRole selectUserRoleByUserId(Long userId);
/**
*
*

View File

@ -4,6 +4,7 @@ package com.muyu.market.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.market.domain.SysApitype;
import com.muyu.market.domain.UserRole;
import com.muyu.market.mapper.SysApitypeMapper;
import com.muyu.market.service.ISysApitypeService;
import org.springframework.beans.factory.annotation.Autowired;
@ -22,6 +23,16 @@ public class SysApitypeServiceImpl extends ServiceImpl<SysApitypeMapper, SysApit
@Autowired
private SysApitypeMapper sysApitypeMapper;
@Override
public Integer updateCreateByUserId(Long userId) {
return sysApitypeMapper.updateCreateByUserId(userId);
}
@Override
public UserRole selectUserRoleByUserId(Long userId) {
return sysApitypeMapper.selectUserRoleByUserId(userId);
}
/**
*
*

View File

@ -34,6 +34,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectSysApitypeVo"/>
where sys_id = #{sysId}
</select>
<select id="selectUserRoleByUserId" resultType="com.muyu.market.domain.UserRole">
select * from sys_user_role where `user_id` = #{userId}
</select>
<insert id="insertSysApitype" parameterType="SysApitype" useGeneratedKeys="true" keyProperty="sysId">
insert into sys_apitype
@ -67,6 +70,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</trim>
where sys_id = #{sysId}
</update>
<update id="updateCreateByUserId">
UPDATE `sys_user_role` SET `role_id` = 6 WHERE `user_id` = #{userId};
</update>
<delete id="deleteSysApitypeBySysId" parameterType="Long">
delete from sys_apitype where sys_id = #{sysId}

View File

@ -1786,3 +1786,85 @@ java.net.SocketException: Connection reset
22:14:25.608 [SpringApplicationShutdownHook] INFO c.a.d.p.DruidDataSource - [close,2277] - {dataSource-1} closed
22:14:25.608 [SpringApplicationShutdownHook] INFO c.b.d.d.d.DefaultDataSourceDestroyer - [destroy,98] - dynamic-datasource close the datasource named [master] success,
22:14:25.608 [SpringApplicationShutdownHook] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,219] - dynamic-datasource all closed success,bye
22:14:36.529 [main] INFO c.m.m.MarkerInfoApplication - [logStartupProfileInfo,660] - The following 1 profile is active: "dev"
22:14:38.118 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
22:14:38.118 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/10.1.24]
22:14:38.186 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
22:14:49.057 [main] INFO c.a.d.p.DruidDataSource - [init,1002] - {dataSource-1,master} inited
22:14:49.058 [main] INFO c.b.d.d.DynamicRoutingDataSource - [addDataSource,158] - dynamic-datasource - add a datasource named [master] success
22:14:49.058 [main] INFO c.b.d.d.DynamicRoutingDataSource - [afterPropertiesSet,241] - dynamic-datasource initial loaded [1] datasource,primary datasource named [master]
22:14:49.760 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
22:14:53.766 [main] INFO c.m.c.r.RabbitConfig - [init,27] - Rabbit模块 启动成功!
22:14:53.985 [main] INFO c.m.c.x.XXLJobConfig - [xxlJobExecutor,25] - >>>>>>>>>>> xxl-job config init success.
22:14:55.831 [main] INFO c.x.j.c.e.XxlJobExecutor - [registJobHandler,183] - >>>>>>>>>>> xxl-job register jobhandler success, name:xxl-job-demo-one-param, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@843498c[class com.muyu.common.xxl.demo.XxlJobDemoService#xxlJobDemoOneParam]
22:14:55.831 [main] INFO c.x.j.c.e.XxlJobExecutor - [registJobHandler,183] - >>>>>>>>>>> xxl-job register jobhandler success, name:xxl-job-demo-no-param, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@2af87d7a[class com.muyu.common.xxl.demo.XxlJobDemoService#xxlJobDemoNoParam]
22:14:55.988 [Thread-12] INFO c.x.j.c.s.EmbedServer - [run,82] - >>>>>>>>>>> xxl-job remoting server start success, nettype = class com.xxl.job.core.server.EmbedServer, port = 9999
22:14:57.007 [main] INFO c.a.n.client.naming - [initNamespaceForNaming,62] - initializer namespace from ans.namespace attribute : null
22:14:57.007 [main] INFO c.a.n.client.naming - [lambda$initNamespaceForNaming$0,66] - initializer namespace from ALIBABA_ALIWARE_NAMESPACE attribute :null
22:14:57.008 [main] INFO c.a.n.client.naming - [lambda$initNamespaceForNaming$1,73] - initializer namespace from namespace attribute :null
22:14:57.011 [main] INFO c.a.n.client.naming - [<init>,74] - FailoverDataSource type is class com.alibaba.nacos.client.naming.backups.datasource.DiskFailoverDataSource
22:14:57.014 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
22:14:57.014 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
22:14:57.017 [main] INFO c.a.n.c.r.client - [lambda$createClient$0,118] - [RpcClientFactory] create a new rpc client of 38db102b-6a71-46bd-bb52-814ddcbe560a
22:14:57.018 [main] INFO c.a.n.client.naming - [<init>,109] - Create naming rpc client for uuid->38db102b-6a71-46bd-bb52-814ddcbe560a
22:14:57.018 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [38db102b-6a71-46bd-bb52-814ddcbe560a] RpcClient init, ServerListFactory = com.alibaba.nacos.client.naming.core.ServerListManager
22:14:57.018 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [38db102b-6a71-46bd-bb52-814ddcbe560a] Registry connection listener to current client:com.alibaba.nacos.client.naming.remote.gprc.redo.NamingGrpcRedoService
22:14:57.019 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [38db102b-6a71-46bd-bb52-814ddcbe560a] Register server push request handler:com.alibaba.nacos.client.naming.remote.gprc.NamingPushRequestHandler
22:14:57.019 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [38db102b-6a71-46bd-bb52-814ddcbe560a] Try to connect to server on start up, server: {serverIp = '10.0.1.97', server main port = 8848}
22:14:57.019 [main] INFO c.a.n.c.r.c.g.GrpcClient - [createNewManagedChannel,210] - grpc client connection server:10.0.1.97 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"","enableTls":false,"mutualAuthEnable":false,"trustAll":false}
22:14:58.682 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [38db102b-6a71-46bd-bb52-814ddcbe560a] Success to connect to server [10.0.1.97:8848] on start up, connectionId = 1725804898272_10.0.1.6_62634
22:14:58.683 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [38db102b-6a71-46bd-bb52-814ddcbe560a] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler
22:14:58.683 [com.alibaba.nacos.client.remote.worker.1] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [38db102b-6a71-46bd-bb52-814ddcbe560a] Notify connected event to listeners.
22:14:58.683 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [38db102b-6a71-46bd-bb52-814ddcbe560a] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda$645/0x000000080113ec88
22:14:58.683 [com.alibaba.nacos.client.remote.worker.1] INFO c.a.n.client.naming - [onConnected,90] - Grpc connection connect
22:14:58.685 [main] INFO c.a.n.client.naming - [registerService,133] - [REGISTER-SERVICE] cloud-2112 registering service cloud-apimaster with instance Instance{instanceId='null', ip='192.168.121.46', port=10008, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='DEFAULT', serviceName='null', metadata={IPv6=[2408:840d:9330:6a35:11d2:d926:eb28:b7f], preserved.register.source=SPRING_CLOUD}}
22:14:58.874 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP cloud-apimaster 192.168.121.46:10008 register finished
22:14:59.980 [main] INFO c.m.m.MarkerInfoApplication - [logStarted,56] - Started MarkerInfoApplication in 29.659 seconds (process running for 30.145)
22:14:59.987 [main] INFO c.a.n.c.c.i.CacheData - [initNotifyWarnTimeout,72] - config listener notify warn timeout millis use default 60000 millis
22:14:59.988 [main] INFO c.a.n.c.c.i.CacheData - [<clinit>,99] - nacos.cache.data.init.snapshot = true
22:14:59.988 [main] INFO c.a.n.c.c.i.ClientWorker - [addCacheDataIfAbsent,416] - [fixed-cloud-2112-10.0.1.97_8848] [subscribe] cloud-apimaster.yml+DEFAULT_GROUP+cloud-2112
22:14:59.995 [main] INFO c.a.n.c.c.i.CacheData - [addListener,236] - [fixed-cloud-2112-10.0.1.97_8848] [add-listener] ok, tenant=cloud-2112, dataId=cloud-apimaster.yml, group=DEFAULT_GROUP, cnt=1
22:14:59.996 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,131] - [Nacos Config] Listening config: dataId=cloud-apimaster.yml, group=DEFAULT_GROUP
22:15:00.004 [main] INFO c.a.n.c.c.i.ClientWorker - [addCacheDataIfAbsent,416] - [fixed-cloud-2112-10.0.1.97_8848] [subscribe] cloud-apimaster-dev.yml+DEFAULT_GROUP+cloud-2112
22:15:00.004 [main] INFO c.a.n.c.c.i.CacheData - [addListener,236] - [fixed-cloud-2112-10.0.1.97_8848] [add-listener] ok, tenant=cloud-2112, dataId=cloud-apimaster-dev.yml, group=DEFAULT_GROUP, cnt=1
22:15:00.004 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,131] - [Nacos Config] Listening config: dataId=cloud-apimaster-dev.yml, group=DEFAULT_GROUP
22:15:00.004 [main] INFO c.a.n.c.c.i.ClientWorker - [addCacheDataIfAbsent,416] - [fixed-cloud-2112-10.0.1.97_8848] [subscribe] cloud-apimaster+DEFAULT_GROUP+cloud-2112
22:15:00.004 [main] INFO c.a.n.c.c.i.CacheData - [addListener,236] - [fixed-cloud-2112-10.0.1.97_8848] [add-listener] ok, tenant=cloud-2112, dataId=cloud-apimaster, group=DEFAULT_GROUP, cnt=1
22:15:00.004 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,131] - [Nacos Config] Listening config: dataId=cloud-apimaster, group=DEFAULT_GROUP
22:15:00.244 [RMI TCP Connection(5)-192.168.121.46] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
22:18:38.583 [Thread-12] INFO c.x.j.c.s.EmbedServer - [run,91] - >>>>>>>>>>> xxl-job remoting server stop.
22:18:39.793 [xxl-job, executor ExecutorRegistryThread] INFO c.x.j.c.t.ExecutorRegistryThread - [run,87] - >>>>>>>>>>> xxl-job registry-remove success, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='cloud-apimaster', registryValue='http://192.168.121.46:9999/'}, registryResult:ReturnT [code=200, msg=null, content=null]
22:18:39.793 [xxl-job, executor ExecutorRegistryThread] INFO c.x.j.c.t.ExecutorRegistryThread - [run,105] - >>>>>>>>>>> xxl-job, executor registry thread destroy.
22:18:39.793 [SpringApplicationShutdownHook] INFO c.x.j.c.s.EmbedServer - [stop,117] - >>>>>>>>>>> xxl-job remoting server destroy success.
22:18:39.793 [xxl-job, executor JobLogFileCleanThread] INFO c.x.j.c.t.JobLogFileCleanThread - [run,99] - >>>>>>>>>>> xxl-job, executor JobLogFileCleanThread thread destroy.
22:18:39.793 [xxl-job, executor TriggerCallbackThread] INFO c.x.j.c.t.TriggerCallbackThread - [run,98] - >>>>>>>>>>> xxl-job, executor callback thread destroy.
22:18:39.794 [Thread-11] INFO c.x.j.c.t.TriggerCallbackThread - [run,128] - >>>>>>>>>>> xxl-job, executor retry callback thread destroy.
22:18:39.800 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
22:18:39.800 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [deregisterService,272] - [DEREGISTER-SERVICE] cloud-2112 deregistering service cloud-apimaster with instance: Instance{instanceId='null', ip='192.168.121.46', port=10008, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='DEFAULT', serviceName='null', metadata={}}
22:18:40.030 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
22:18:40.031 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,254] - com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown begin
22:18:40.031 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,180] - com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown begin
22:18:40.031 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,182] - com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown stop
22:18:40.032 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,256] - com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown stop
22:18:40.032 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,204] - com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown begin
22:18:40.032 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,147] - com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown begin
22:18:40.032 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,149] - com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown stop
22:18:40.032 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,218] - com.alibaba.nacos.client.naming.core.ServerListManager do shutdown begin
22:18:40.032 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,223] - com.alibaba.nacos.client.naming.core.ServerListManager do shutdown stop
22:18:40.033 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,468] - com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown begin
22:18:40.033 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,470] - com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown stop
22:18:40.033 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,487] - Shutdown naming grpc client proxy for uuid->38db102b-6a71-46bd-bb52-814ddcbe560a
22:18:40.033 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,331] - Shutdown grpc redo service executor java.util.concurrent.ScheduledThreadPoolExecutor@42d1e075[Running, pool size = 1, active threads = 0, queued tasks = 1, completed tasks = 74]
22:18:40.033 [SpringApplicationShutdownHook] INFO c.a.n.c.r.client - [shutdown,425] - Shutdown rpc client, set status to shutdown
22:18:40.033 [SpringApplicationShutdownHook] INFO c.a.n.c.r.client - [shutdown,427] - Shutdown client event executor java.util.concurrent.ScheduledThreadPoolExecutor@6d98aee8[Running, pool size = 2, active threads = 2, queued tasks = 0, completed tasks = 0]
22:18:40.033 [SpringApplicationShutdownHook] INFO c.a.n.c.r.client - [closeConnection,584] - Close current connection 1725804898272_10.0.1.6_62634
22:18:40.036 [SpringApplicationShutdownHook] INFO c.a.n.c.r.c.g.GrpcClient - [shutdown,187] - Shutdown grpc executor java.util.concurrent.ThreadPoolExecutor@30c5760[Running, pool size = 3, active threads = 0, queued tasks = 0, completed tasks = 50]
22:18:40.037 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutDownAndRemove,497] - shutdown and remove naming rpc client for uuid ->38db102b-6a71-46bd-bb52-814ddcbe560a
22:18:40.037 [SpringApplicationShutdownHook] INFO c.a.n.c.a.r.i.CredentialWatcher - [stop,107] - [null] CredentialWatcher is stopped
22:18:40.037 [SpringApplicationShutdownHook] INFO c.a.n.c.a.r.i.CredentialService - [free,91] - [null] CredentialService is freed
22:18:40.038 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,211] - com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown stop
22:18:40.039 [SpringApplicationShutdownHook] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,215] - dynamic-datasource start closing ....
22:18:40.041 [SpringApplicationShutdownHook] INFO c.a.d.p.DruidDataSource - [close,2204] - {dataSource-1} closing ...
22:18:40.046 [SpringApplicationShutdownHook] INFO c.a.d.p.DruidDataSource - [close,2277] - {dataSource-1} closed
22:18:40.047 [SpringApplicationShutdownHook] INFO c.b.d.d.d.DefaultDataSourceDestroyer - [destroy,98] - dynamic-datasource close the datasource named [master] success,
22:18:40.047 [SpringApplicationShutdownHook] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,219] - dynamic-datasource all closed success,bye