完善CRUD

master
Qin Dong Ming 2024-08-23 20:29:16 +08:00
parent ded5c433c7
commit e77d8204e5
8 changed files with 3132 additions and 32 deletions

View File

@ -1,5 +1,6 @@
package com.muyu.req; package com.muyu.req;
import com.muyu.common.core.web.domain.BaseEntity;
import com.muyu.domain.EngineVersion; import com.muyu.domain.EngineVersion;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
@ -19,7 +20,7 @@ import java.util.List;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @SuperBuilder
public class EngineVersionListResp { public class EngineVersionListResp {
/** 编号 */ /** 编号 */
private Long id; private Long id;

View File

@ -2,7 +2,6 @@ package com.muyu.controller;
import com.muyu.common.core.domain.Result; import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil; import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController; import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.domain.EngineMaintenance; import com.muyu.domain.EngineMaintenance;
import com.muyu.req.EngineVersionListResp; import com.muyu.req.EngineVersionListResp;
import com.muyu.service.EngIneService; import com.muyu.service.EngIneService;
@ -48,7 +47,7 @@ public class EngIneController extends BaseController {
@PostMapping("/insert") @PostMapping("/insert")
public Result<EngineMaintenance> insert(@RequestBody EngineMaintenance engineMaintenance){ public Result<EngineMaintenance> insert(@RequestBody EngineMaintenance engineMaintenance){
return engIneService.insert(engineMaintenance); return engIneService.add(engineMaintenance);
} }
@ -74,8 +73,8 @@ public class EngIneController extends BaseController {
/** /**
* *
*/ */
@PutMapping("/forbiddenEngine/{id}") @GetMapping("/forbiddenEngine/{id}")
public Result forbiddenEngine(@PathVariable Long id) { public Result forbiddenEngine(@PathVariable Integer id) {
engIneService.forbiddenEngine(id); engIneService.forbiddenEngine(id);
return Result.success(); return Result.success();
} }
@ -84,7 +83,7 @@ public class EngIneController extends BaseController {
* *
*/ */
@PutMapping("/onEngine/{id}") @PutMapping("/onEngine/{id}")
public Result onEngine(@PathVariable Long id) { public Result onEngine(@PathVariable Integer id) {
engIneService.onEngine(id); engIneService.onEngine(id);
return Result.success(); return Result.success();
} }
@ -93,7 +92,7 @@ public class EngIneController extends BaseController {
* *
*/ */
@PutMapping("/closeEngine/{id}") @PutMapping("/closeEngine/{id}")
public Result closeEngine(@PathVariable Long id) { public Result closeEngine(@PathVariable Integer id) {
engIneService.closeEngine(id); engIneService.closeEngine(id);
return Result.success(); return Result.success();
} }
@ -102,7 +101,7 @@ public class EngIneController extends BaseController {
* *
*/ */
@PutMapping("/activateEngine/{id}") @PutMapping("/activateEngine/{id}")
public Result activateEngine(@PathVariable Long id) { public Result activateEngine(@PathVariable Integer id) {
engIneService.activateEngine(id); engIneService.activateEngine(id);
return Result.success(); return Result.success();
} }

View File

@ -3,6 +3,7 @@ package com.muyu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.domain.EngineMaintenance; import com.muyu.domain.EngineMaintenance;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/** /**
* @Authorqdm * @Authorqdm
@ -13,4 +14,13 @@ import org.apache.ibatis.annotations.Mapper;
*/ */
@Mapper @Mapper
public interface EngineMapper extends BaseMapper<EngineMaintenance> { public interface EngineMapper extends BaseMapper<EngineMaintenance> {
Integer add(EngineMaintenance engineMaintenance);
Integer forbiddenEngine(@Param("id") Integer id);
Integer onEngine(@Param("id") Integer id);
Integer closeEngine(@Param("id") Integer id);
Integer activateEngine(@Param("id") Integer id);
} }

View File

@ -26,13 +26,16 @@ public interface EngIneService extends IService<EngineMaintenance> {
EngineVersionListResp getRuleEngineInfo(Long id); EngineVersionListResp getRuleEngineInfo(Long id);
void forbiddenEngine(Long id); void forbiddenEngine(Integer id);
void onEngine(Long id); void onEngine(Integer id);
void closeEngine(Long id); void closeEngine(Integer id);
void activateEngine(Long id); void activateEngine(Integer id);
int deleteByIds(String ids); int deleteByIds(String ids);
Result<EngineMaintenance> add(EngineMaintenance engineMaintenance);
} }

View File

@ -115,35 +115,23 @@ public class EngIneServiceImpl extends ServiceImpl<EngineMapper, EngineMaintenan
} }
@Override @Override
public void forbiddenEngine(Long id) { public void forbiddenEngine(Integer id) {
this.update(new LambdaUpdateWrapper<>() {{ Integer res = engineMapper.forbiddenEngine(id);
eq(EngineMaintenance::getId, id);
set(EngineMaintenance::getIsActivate, "N");
}});
} }
@Override @Override
public void onEngine(Long id) { public void onEngine(Integer id) {
this.update(new LambdaUpdateWrapper<>() {{ Integer res = engineMapper.onEngine(id);
eq(EngineMaintenance::getId, id);
set(EngineMaintenance::getStatus, "Y");
}});
} }
@Override @Override
public void closeEngine(Long id) { public void closeEngine(Integer id) {
this.update(new LambdaUpdateWrapper<>() {{ Integer res = engineMapper.closeEngine(id);
eq(EngineMaintenance::getId, id);
set(EngineMaintenance::getStatus, "N");
}});
} }
@Override @Override
public void activateEngine(Long id) { public void activateEngine(Integer id) {
this.update(new LambdaUpdateWrapper<>() {{ Integer res = engineMapper.activateEngine(id);
eq(EngineMaintenance::getId, id);
set(EngineMaintenance::getIsActivate, "Y");
}});
} }
@Override @Override
@ -154,4 +142,13 @@ public class EngIneServiceImpl extends ServiceImpl<EngineMapper, EngineMaintenan
return delete; return delete;
} }
@Override
public Result<EngineMaintenance> add(EngineMaintenance engineMaintenance) {
Integer res = engineMapper.add(engineMaintenance);
if (res > 0) {
return Result.success();
}
return Result.error();
}
} }

View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.mapper.EngineMapper">
<insert id="add">
insert engine_maintenance values
(
0,
#{name},
#{engineCode},
#{description},
#{type},
#{scope},
#{status},
#{isActivate},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark}
)
</insert>
<update id="forbiddenEngine">
update engine_maintenance set status = 1 where id = #{id}
</update>
<update id="onEngine">
update engine_maintenance set status = 2 where id = #{id}
</update>
<update id="closeEngine">
update engine_maintenance set status = 3 where id = #{id}
</update>
<update id="activateEngine">
update engine_maintenance set status = 4 where id = #{id}
</update>
</mapper>

File diff suppressed because it is too large Load Diff

View File

@ -951,3 +951,146 @@
11:05:21.584 [RMI TCP Connection(3)-172.16.0.10] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet' 11:05:21.584 [RMI TCP Connection(3)-172.16.0.10] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
11:15:23.074 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now... 11:15:23.074 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
11:15:23.074 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [deregisterService,272] - [DEREGISTER-SERVICE] cloud-2112 deregistering service cloud-engine with instance: Instance{instanceId='null', ip='192.168.52.1', port=9701, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='DEFAULT', serviceName='null', metadata={}} 11:15:23.074 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [deregisterService,272] - [DEREGISTER-SERVICE] cloud-2112 deregistering service cloud-engine with instance: Instance{instanceId='null', ip='192.168.52.1', port=9701, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='DEFAULT', serviceName='null', metadata={}}
18:39:59.344 [main] INFO c.m.EngineApplication - [logStartupProfileInfo,660] - The following 1 profile is active: "dev"
18:40:02.129 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
18:40:02.129 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/10.1.24]
18:40:02.195 [com.alibaba.nacos.client.remote.worker.1] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [3c30c43a-be86-4759-a57f-b264e6638a9f_config-0] Fail to connect server, after trying 1 times, last try server is {serverIp = '47.116.184.54', server main port = 8848}, error = unknown
18:40:02.215 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
18:40:02.397 [com.alibaba.nacos.client.remote.worker.1] INFO c.a.n.c.r.c.g.GrpcClient - [createNewManagedChannel,210] - grpc client connection server:47.116.184.54 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"","enableTls":false,"mutualAuthEnable":false,"trustAll":false}
18:40:05.412 [com.alibaba.nacos.client.remote.worker.1] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [3c30c43a-be86-4759-a57f-b264e6638a9f_config-0] Fail to connect server, after trying 2 times, last try server is {serverIp = '47.116.184.54', server main port = 8848}, error = unknown
18:40:05.720 [com.alibaba.nacos.client.remote.worker.1] INFO c.a.n.c.r.c.g.GrpcClient - [createNewManagedChannel,210] - grpc client connection server:47.116.184.54 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"","enableTls":false,"mutualAuthEnable":false,"trustAll":false}
18:40:08.725 [com.alibaba.nacos.client.remote.worker.1] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [3c30c43a-be86-4759-a57f-b264e6638a9f_config-0] Fail to connect server, after trying 3 times, last try server is {serverIp = '47.116.184.54', server main port = 8848}, error = unknown
18:40:09.129 [com.alibaba.nacos.client.remote.worker.1] INFO c.a.n.c.r.c.g.GrpcClient - [createNewManagedChannel,210] - grpc client connection server:47.116.184.54 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"","enableTls":false,"mutualAuthEnable":false,"trustAll":false}
18:40:12.136 [com.alibaba.nacos.client.remote.worker.1] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [3c30c43a-be86-4759-a57f-b264e6638a9f_config-0] Fail to connect server, after trying 4 times, last try server is {serverIp = '47.116.184.54', server main port = 8848}, error = unknown
18:40:12.650 [com.alibaba.nacos.client.remote.worker.1] INFO c.a.n.c.r.c.g.GrpcClient - [createNewManagedChannel,210] - grpc client connection server:47.116.184.54 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"","enableTls":false,"mutualAuthEnable":false,"trustAll":false}
18:40:15.662 [com.alibaba.nacos.client.remote.worker.1] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [3c30c43a-be86-4759-a57f-b264e6638a9f_config-0] Fail to connect server, after trying 5 times, last try server is {serverIp = '47.116.184.54', server main port = 8848}, error = unknown
18:40:16.266 [com.alibaba.nacos.client.remote.worker.1] INFO c.a.n.c.r.c.g.GrpcClient - [createNewManagedChannel,210] - grpc client connection server:47.116.184.54 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"","enableTls":false,"mutualAuthEnable":false,"trustAll":false}
18:40:19.281 [com.alibaba.nacos.client.remote.worker.1] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [3c30c43a-be86-4759-a57f-b264e6638a9f_config-0] Fail to connect server, after trying 6 times, last try server is {serverIp = '47.116.184.54', server main port = 8848}, error = unknown
18:40:19.996 [com.alibaba.nacos.client.remote.worker.1] INFO c.a.n.c.r.c.g.GrpcClient - [createNewManagedChannel,210] - grpc client connection server:47.116.184.54 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"","enableTls":false,"mutualAuthEnable":false,"trustAll":false}
18:40:23.001 [com.alibaba.nacos.client.remote.worker.1] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [3c30c43a-be86-4759-a57f-b264e6638a9f_config-0] Fail to connect server, after trying 7 times, last try server is {serverIp = '47.116.184.54', server main port = 8848}, error = unknown
18:40:23.779 [main] INFO c.a.d.p.DruidDataSource - [init,1002] - {dataSource-1,master} inited
18:40:23.782 [main] INFO o.a.c.c.StandardService - [log,173] - Stopping service [Tomcat]
18:40:23.812 [com.alibaba.nacos.client.remote.worker.1] INFO c.a.n.c.r.c.g.GrpcClient - [createNewManagedChannel,210] - grpc client connection server:47.116.184.54 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"","enableTls":false,"mutualAuthEnable":false,"trustAll":false}
18:40:57.033 [main] INFO c.m.EngineApplication - [logStartupProfileInfo,660] - The following 1 profile is active: "dev"
18:40:59.479 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
18:40:59.479 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/10.1.24]
18:40:59.556 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
18:41:21.072 [main] INFO c.a.d.p.DruidDataSource - [init,1002] - {dataSource-1,master} inited
18:41:21.075 [main] INFO o.a.c.c.StandardService - [log,173] - Stopping service [Tomcat]
18:42:35.137 [main] INFO c.m.EngineApplication - [logStartupProfileInfo,660] - The following 1 profile is active: "dev"
18:42:37.778 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
18:42:37.778 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/10.1.24]
18:42:37.859 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
18:42:59.471 [main] INFO c.a.d.p.DruidDataSource - [init,1002] - {dataSource-1,master} inited
18:42:59.471 [main] INFO o.a.c.c.StandardService - [log,173] - Stopping service [Tomcat]
18:43:20.827 [main] INFO c.m.EngineApplication - [logStartupProfileInfo,660] - The following 1 profile is active: "dev"
18:43:23.335 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
18:43:23.335 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/10.1.24]
18:43:23.415 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
18:43:24.716 [main] INFO c.a.d.p.DruidDataSource - [init,1002] - {dataSource-1,master} inited
18:43:24.717 [main] INFO c.b.d.d.DynamicRoutingDataSource - [addDataSource,158] - dynamic-datasource - add a datasource named [master] success
18:43:24.717 [main] INFO c.b.d.d.DynamicRoutingDataSource - [afterPropertiesSet,241] - dynamic-datasource initial loaded [1] datasource,primary datasource named [master]
18:43:25.988 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
18:43:33.674 [main] INFO c.a.n.client.naming - [initNamespaceForNaming,62] - initializer namespace from ans.namespace attribute : null
18:43:33.674 [main] INFO c.a.n.client.naming - [lambda$initNamespaceForNaming$0,66] - initializer namespace from ALIBABA_ALIWARE_NAMESPACE attribute :null
18:43:33.674 [main] INFO c.a.n.client.naming - [lambda$initNamespaceForNaming$1,73] - initializer namespace from namespace attribute :null
18:43:33.674 [main] INFO c.a.n.client.naming - [<init>,74] - FailoverDataSource type is class com.alibaba.nacos.client.naming.backups.datasource.DiskFailoverDataSource
18:43:33.689 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
18:43:33.689 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
18:43:33.784 [main] INFO c.a.n.c.r.client - [lambda$createClient$0,118] - [RpcClientFactory] create a new rpc client of 7acdf737-d38a-43f2-8283-7c2b5965405d
18:43:33.784 [main] INFO c.a.n.client.naming - [<init>,109] - Create naming rpc client for uuid->7acdf737-d38a-43f2-8283-7c2b5965405d
18:43:33.784 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [7acdf737-d38a-43f2-8283-7c2b5965405d] RpcClient init, ServerListFactory = com.alibaba.nacos.client.naming.core.ServerListManager
18:43:33.784 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [7acdf737-d38a-43f2-8283-7c2b5965405d] Registry connection listener to current client:com.alibaba.nacos.client.naming.remote.gprc.redo.NamingGrpcRedoService
18:43:33.784 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [7acdf737-d38a-43f2-8283-7c2b5965405d] Register server push request handler:com.alibaba.nacos.client.naming.remote.gprc.NamingPushRequestHandler
18:43:33.784 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [7acdf737-d38a-43f2-8283-7c2b5965405d] Try to connect to server on start up, server: {serverIp = '47.116.184.54', server main port = 8848}
18:43:33.784 [main] INFO c.a.n.c.r.c.g.GrpcClient - [createNewManagedChannel,210] - grpc client connection server:47.116.184.54 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"","enableTls":false,"mutualAuthEnable":false,"trustAll":false}
18:43:33.829 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [7acdf737-d38a-43f2-8283-7c2b5965405d] Success to connect to server [47.116.184.54:8848] on start up, connectionId = 1724409818560_139.224.212.27_63075
18:43:33.829 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [7acdf737-d38a-43f2-8283-7c2b5965405d] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler
18:43:33.829 [com.alibaba.nacos.client.remote.worker.0] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [7acdf737-d38a-43f2-8283-7c2b5965405d] Notify connected event to listeners.
18:43:33.829 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [7acdf737-d38a-43f2-8283-7c2b5965405d] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda$575/0x000001bf024d0000
18:43:33.829 [com.alibaba.nacos.client.remote.worker.0] INFO c.a.n.client.naming - [onConnected,90] - Grpc connection connect
18:43:33.829 [main] INFO c.a.n.client.naming - [registerService,133] - [REGISTER-SERVICE] cloud-2112 registering service cloud-engine with instance Instance{instanceId='null', ip='192.168.52.1', port=9701, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='DEFAULT', serviceName='null', metadata={IPv6=null, preserved.register.source=SPRING_CLOUD}}
18:43:33.865 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP cloud-engine 192.168.52.1:9701 register finished
18:43:35.136 [main] INFO c.m.EngineApplication - [logStarted,56] - Started EngineApplication in 20.198 seconds (process running for 21.424)
18:43:35.136 [main] INFO c.a.n.c.c.i.CacheData - [initNotifyWarnTimeout,72] - config listener notify warn timeout millis use default 60000 millis
18:43:35.136 [main] INFO c.a.n.c.c.i.CacheData - [<clinit>,99] - nacos.cache.data.init.snapshot = true
18:43:35.136 [main] INFO c.a.n.c.c.i.ClientWorker - [addCacheDataIfAbsent,416] - [fixed-cloud-2112-47.116.184.54_8848] [subscribe] cloud-engine.yml+DEFAULT_GROUP+cloud-2112
18:43:35.152 [main] INFO c.a.n.c.c.i.CacheData - [addListener,236] - [fixed-cloud-2112-47.116.184.54_8848] [add-listener] ok, tenant=cloud-2112, dataId=cloud-engine.yml, group=DEFAULT_GROUP, cnt=1
18:43:35.152 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,131] - [Nacos Config] Listening config: dataId=cloud-engine.yml, group=DEFAULT_GROUP
18:43:35.152 [main] INFO c.a.n.c.c.i.ClientWorker - [addCacheDataIfAbsent,416] - [fixed-cloud-2112-47.116.184.54_8848] [subscribe] cloud-engine+DEFAULT_GROUP+cloud-2112
18:43:35.152 [main] INFO c.a.n.c.c.i.CacheData - [addListener,236] - [fixed-cloud-2112-47.116.184.54_8848] [add-listener] ok, tenant=cloud-2112, dataId=cloud-engine, group=DEFAULT_GROUP, cnt=1
18:43:35.152 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,131] - [Nacos Config] Listening config: dataId=cloud-engine, group=DEFAULT_GROUP
18:43:35.152 [main] INFO c.a.n.c.c.i.ClientWorker - [addCacheDataIfAbsent,416] - [fixed-cloud-2112-47.116.184.54_8848] [subscribe] cloud-engine-dev.yml+DEFAULT_GROUP+cloud-2112
18:43:35.152 [main] INFO c.a.n.c.c.i.CacheData - [addListener,236] - [fixed-cloud-2112-47.116.184.54_8848] [add-listener] ok, tenant=cloud-2112, dataId=cloud-engine-dev.yml, group=DEFAULT_GROUP, cnt=1
18:43:35.152 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,131] - [Nacos Config] Listening config: dataId=cloud-engine-dev.yml, group=DEFAULT_GROUP
18:43:35.514 [RMI TCP Connection(2)-172.16.0.5] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
18:47:03.155 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
18:47:03.155 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [deregisterService,272] - [DEREGISTER-SERVICE] cloud-2112 deregistering service cloud-engine with instance: Instance{instanceId='null', ip='192.168.52.1', port=9701, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='DEFAULT', serviceName='null', metadata={}}
18:47:03.171 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
18:47:03.173 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,254] - com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown begin
18:47:03.173 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,180] - com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown begin
18:47:03.173 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,182] - com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown stop
18:47:03.173 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,256] - com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown stop
18:47:03.173 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,204] - com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown begin
18:47:03.173 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,147] - com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown begin
18:47:03.173 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,149] - com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown stop
18:47:03.173 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,218] - com.alibaba.nacos.client.naming.core.ServerListManager do shutdown begin
18:47:03.174 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,223] - com.alibaba.nacos.client.naming.core.ServerListManager do shutdown stop
18:47:03.174 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,468] - com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown begin
18:47:03.174 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,470] - com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown stop
18:47:03.174 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,487] - Shutdown naming grpc client proxy for uuid->7acdf737-d38a-43f2-8283-7c2b5965405d
18:47:03.174 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,331] - Shutdown grpc redo service executor java.util.concurrent.ScheduledThreadPoolExecutor@54a8ff01[Running, pool size = 1, active threads = 0, queued tasks = 1, completed tasks = 69]
18:47:03.174 [SpringApplicationShutdownHook] INFO c.a.n.c.r.client - [shutdown,425] - Shutdown rpc client, set status to shutdown
18:47:03.174 [SpringApplicationShutdownHook] INFO c.a.n.c.r.client - [shutdown,427] - Shutdown client event executor java.util.concurrent.ScheduledThreadPoolExecutor@3427caa5[Running, pool size = 2, active threads = 2, queued tasks = 0, completed tasks = 0]
18:47:03.175 [SpringApplicationShutdownHook] INFO c.a.n.c.r.client - [closeConnection,584] - Close current connection 1724409818560_139.224.212.27_63075
18:47:03.179 [SpringApplicationShutdownHook] INFO c.a.n.c.r.c.g.GrpcClient - [shutdown,187] - Shutdown grpc executor java.util.concurrent.ThreadPoolExecutor@3566ec09[Running, pool size = 3, active threads = 0, queued tasks = 0, completed tasks = 49]
18:47:03.179 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutDownAndRemove,497] - shutdown and remove naming rpc client for uuid ->7acdf737-d38a-43f2-8283-7c2b5965405d
18:47:03.179 [SpringApplicationShutdownHook] INFO c.a.n.c.a.r.i.CredentialWatcher - [stop,107] - [null] CredentialWatcher is stopped
18:47:03.179 [SpringApplicationShutdownHook] INFO c.a.n.c.a.r.i.CredentialService - [free,91] - [null] CredentialService is freed
18:47:03.179 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,211] - com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown stop
18:47:03.184 [SpringApplicationShutdownHook] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,215] - dynamic-datasource start closing ....
18:47:03.187 [SpringApplicationShutdownHook] INFO c.a.d.p.DruidDataSource - [close,2204] - {dataSource-1} closing ...
18:47:03.191 [SpringApplicationShutdownHook] INFO c.a.d.p.DruidDataSource - [close,2277] - {dataSource-1} closed
18:47:03.191 [SpringApplicationShutdownHook] INFO c.b.d.d.d.DefaultDataSourceDestroyer - [destroy,98] - dynamic-datasource close the datasource named [master] success,
18:47:03.191 [SpringApplicationShutdownHook] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,219] - dynamic-datasource all closed success,bye
18:47:16.347 [main] INFO c.m.EngineApplication - [logStartupProfileInfo,660] - The following 1 profile is active: "dev"
18:47:18.889 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
18:47:18.889 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/10.1.24]
18:47:18.970 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
18:47:20.108 [main] INFO c.a.d.p.DruidDataSource - [init,1002] - {dataSource-1,master} inited
18:47:20.109 [main] INFO c.b.d.d.DynamicRoutingDataSource - [addDataSource,158] - dynamic-datasource - add a datasource named [master] success
18:47:20.110 [main] INFO c.b.d.d.DynamicRoutingDataSource - [afterPropertiesSet,241] - dynamic-datasource initial loaded [1] datasource,primary datasource named [master]
18:47:21.290 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
18:47:28.772 [main] INFO c.a.n.client.naming - [initNamespaceForNaming,62] - initializer namespace from ans.namespace attribute : null
18:47:28.773 [main] INFO c.a.n.client.naming - [lambda$initNamespaceForNaming$0,66] - initializer namespace from ALIBABA_ALIWARE_NAMESPACE attribute :null
18:47:28.773 [main] INFO c.a.n.client.naming - [lambda$initNamespaceForNaming$1,73] - initializer namespace from namespace attribute :null
18:47:28.779 [main] INFO c.a.n.client.naming - [<init>,74] - FailoverDataSource type is class com.alibaba.nacos.client.naming.backups.datasource.DiskFailoverDataSource
18:47:28.785 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
18:47:28.785 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
18:47:29.038 [main] INFO c.a.n.c.r.client - [lambda$createClient$0,118] - [RpcClientFactory] create a new rpc client of 802e532f-78c1-47c1-b28a-011724d6ba1a
18:47:29.041 [main] INFO c.a.n.client.naming - [<init>,109] - Create naming rpc client for uuid->802e532f-78c1-47c1-b28a-011724d6ba1a
18:47:29.041 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [802e532f-78c1-47c1-b28a-011724d6ba1a] RpcClient init, ServerListFactory = com.alibaba.nacos.client.naming.core.ServerListManager
18:47:29.041 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [802e532f-78c1-47c1-b28a-011724d6ba1a] Registry connection listener to current client:com.alibaba.nacos.client.naming.remote.gprc.redo.NamingGrpcRedoService
18:47:29.041 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [802e532f-78c1-47c1-b28a-011724d6ba1a] Register server push request handler:com.alibaba.nacos.client.naming.remote.gprc.NamingPushRequestHandler
18:47:29.042 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [802e532f-78c1-47c1-b28a-011724d6ba1a] Try to connect to server on start up, server: {serverIp = '47.116.184.54', server main port = 8848}
18:47:29.042 [main] INFO c.a.n.c.r.c.g.GrpcClient - [createNewManagedChannel,210] - grpc client connection server:47.116.184.54 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"","enableTls":false,"mutualAuthEnable":false,"trustAll":false}
18:47:29.078 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [802e532f-78c1-47c1-b28a-011724d6ba1a] Success to connect to server [47.116.184.54:8848] on start up, connectionId = 1724410053802_139.224.212.27_63465
18:47:29.078 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [802e532f-78c1-47c1-b28a-011724d6ba1a] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler
18:47:29.078 [com.alibaba.nacos.client.remote.worker.0] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [802e532f-78c1-47c1-b28a-011724d6ba1a] Notify connected event to listeners.
18:47:29.078 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [802e532f-78c1-47c1-b28a-011724d6ba1a] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda$575/0x00000225814d14f8
18:47:29.078 [com.alibaba.nacos.client.remote.worker.0] INFO c.a.n.client.naming - [onConnected,90] - Grpc connection connect
18:47:29.080 [main] INFO c.a.n.client.naming - [registerService,133] - [REGISTER-SERVICE] cloud-2112 registering service cloud-engine with instance Instance{instanceId='null', ip='192.168.52.1', port=9701, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='DEFAULT', serviceName='null', metadata={IPv6=null, preserved.register.source=SPRING_CLOUD}}
18:47:29.096 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP cloud-engine 192.168.52.1:9701 register finished
18:47:30.311 [main] INFO c.m.EngineApplication - [logStarted,56] - Started EngineApplication in 19.16 seconds (process running for 20.093)
18:47:30.325 [main] INFO c.a.n.c.c.i.CacheData - [initNotifyWarnTimeout,72] - config listener notify warn timeout millis use default 60000 millis
18:47:30.326 [main] INFO c.a.n.c.c.i.CacheData - [<clinit>,99] - nacos.cache.data.init.snapshot = true
18:47:30.327 [main] INFO c.a.n.c.c.i.ClientWorker - [addCacheDataIfAbsent,416] - [fixed-cloud-2112-47.116.184.54_8848] [subscribe] cloud-engine.yml+DEFAULT_GROUP+cloud-2112
18:47:30.341 [main] INFO c.a.n.c.c.i.CacheData - [addListener,236] - [fixed-cloud-2112-47.116.184.54_8848] [add-listener] ok, tenant=cloud-2112, dataId=cloud-engine.yml, group=DEFAULT_GROUP, cnt=1
18:47:30.342 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,131] - [Nacos Config] Listening config: dataId=cloud-engine.yml, group=DEFAULT_GROUP
18:47:30.342 [main] INFO c.a.n.c.c.i.ClientWorker - [addCacheDataIfAbsent,416] - [fixed-cloud-2112-47.116.184.54_8848] [subscribe] cloud-engine+DEFAULT_GROUP+cloud-2112
18:47:30.343 [main] INFO c.a.n.c.c.i.CacheData - [addListener,236] - [fixed-cloud-2112-47.116.184.54_8848] [add-listener] ok, tenant=cloud-2112, dataId=cloud-engine, group=DEFAULT_GROUP, cnt=1
18:47:30.343 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,131] - [Nacos Config] Listening config: dataId=cloud-engine, group=DEFAULT_GROUP
18:47:30.346 [main] INFO c.a.n.c.c.i.ClientWorker - [addCacheDataIfAbsent,416] - [fixed-cloud-2112-47.116.184.54_8848] [subscribe] cloud-engine-dev.yml+DEFAULT_GROUP+cloud-2112
18:47:30.346 [main] INFO c.a.n.c.c.i.CacheData - [addListener,236] - [fixed-cloud-2112-47.116.184.54_8848] [add-listener] ok, tenant=cloud-2112, dataId=cloud-engine-dev.yml, group=DEFAULT_GROUP, cnt=1
18:47:30.346 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,131] - [Nacos Config] Listening config: dataId=cloud-engine-dev.yml, group=DEFAULT_GROUP
18:47:30.771 [RMI TCP Connection(3)-172.16.0.5] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'