From d67cf3db42fef2827514fd11c2df4131bb23ca7d Mon Sep 17 00:00:00 2001 From: Zangzhipeng Date: Tue, 9 Jul 2024 08:52:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=86=E6=9E=B6=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/compiler.xml | 11 ++ .idea/encodings.xml | 4 + .idea/misc.xml | 13 ++ .idea/uiDesigner.xml | 124 ++++++++++++++++++ hiatmp-admin-server/pom.xml | 47 +++++++ .../src/main/resources/application.yml | 17 +++ .../target/classes/application.yml | 17 +++ .../hiatmp/adminServer/AdminServerMain.class | Bin 827 -> 932 bytes hiatmp-api-server/pom.xml | 78 +++++++++++ .../urbantraffic/SpringApplicationMain.java | 14 ++ .../controller/loginController.java | 56 ++++++++ .../hiatmp/urbantraffic/entity/User.java | 20 +++ .../urbantraffic/mapper/UserMapper.java | 9 ++ .../hiatmp/urbantraffic/result/Result.java | 56 ++++++++ .../urbantraffic/result/ResultCodeEnum.java | 23 ++++ .../urbantraffic/service/IUserService.java | 10 ++ .../service/impl/IUserServiceImpl.java | 13 ++ .../src/main/resources/application.yml | 30 +++++ .../src/main/resources/application.yml | 114 +++++++++------- .../hiatmp/gateway/filters/SsoFilter.class | Bin 17546 -> 17554 bytes hiatmp-parent/pom.xml | 2 +- log/monitor-info.log | 56 +++++--- log/test.log | 88 ++----------- log/warn.log | 62 +-------- pom.xml | 15 ++- 25 files changed, 671 insertions(+), 208 deletions(-) create mode 100644 .idea/uiDesigner.xml create mode 100644 hiatmp-api-server/pom.xml create mode 100644 hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/SpringApplicationMain.java create mode 100644 hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/controller/loginController.java create mode 100644 hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/entity/User.java create mode 100644 hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/mapper/UserMapper.java create mode 100644 hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/result/Result.java create mode 100644 hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/result/ResultCodeEnum.java create mode 100644 hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/service/IUserService.java create mode 100644 hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/service/impl/IUserServiceImpl.java create mode 100644 hiatmp-api-server/src/main/resources/application.yml diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 922aa6f..d10779b 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -11,21 +11,32 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml index 1afc332..de55f96 100644 --- a/.idea/encodings.xml +++ b/.idea/encodings.xml @@ -2,6 +2,7 @@ + @@ -10,7 +11,10 @@ + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 7983ba6..b98b362 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -21,8 +21,21 @@ + \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 0000000..2b63946 --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/hiatmp-admin-server/pom.xml b/hiatmp-admin-server/pom.xml index 74ce514..fb234fc 100644 --- a/hiatmp-admin-server/pom.xml +++ b/hiatmp-admin-server/pom.xml @@ -14,6 +14,13 @@ hiatmp-admin-server + + + + + + + org.springframework.boot spring-boot-starter-web @@ -42,6 +49,46 @@ spring-boot-starter-security 3.0.1 + + + org.projectlombok + lombok + + + + + + + + + com.baomidou + mybatis-plus-annotation + 3.5.7 + compile + + + + com.baomidou + mybatis-plus-boot-starter + 3.5.7 + + + + com.baomidou + mybatis-plus-core + 3.5.7 + + + com.baomidou + mybatis-plus-extension + 3.5.7 + compile + + + + org.postgresql + postgresql + diff --git a/hiatmp-admin-server/src/main/resources/application.yml b/hiatmp-admin-server/src/main/resources/application.yml index 3cbb087..6e76fcd 100644 --- a/hiatmp-admin-server/src/main/resources/application.yml +++ b/hiatmp-admin-server/src/main/resources/application.yml @@ -11,3 +11,20 @@ spring: name: hisense password: N5HWw9Hn3jxD + datasource: + driver-class-name: org.postgresql.Driver + url: jdbc:postgresql://118.89.79.160:5432/postgres + username: postgres + password: postgres123 + +# type: com.alibaba.druid.pool.DruidDataSource + # 配置获取连接等待超时的时间,单位毫秒 + maxWait: 60000 + # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒 + time-between-eviction-runs-millis: 60000 + # 配置一个连接在池中最小生存的时间,单位毫秒 + min-evictable-idle-time-millis: 300000 + validation-query: SELECT 1 FROM DUAL + test-while-idle: true + test-on-borrow: false + test-on-return: false \ No newline at end of file diff --git a/hiatmp-admin-server/target/classes/application.yml b/hiatmp-admin-server/target/classes/application.yml index 3cbb087..6e76fcd 100644 --- a/hiatmp-admin-server/target/classes/application.yml +++ b/hiatmp-admin-server/target/classes/application.yml @@ -11,3 +11,20 @@ spring: name: hisense password: N5HWw9Hn3jxD + datasource: + driver-class-name: org.postgresql.Driver + url: jdbc:postgresql://118.89.79.160:5432/postgres + username: postgres + password: postgres123 + +# type: com.alibaba.druid.pool.DruidDataSource + # 配置获取连接等待超时的时间,单位毫秒 + maxWait: 60000 + # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒 + time-between-eviction-runs-millis: 60000 + # 配置一个连接在池中最小生存的时间,单位毫秒 + min-evictable-idle-time-millis: 300000 + validation-query: SELECT 1 FROM DUAL + test-while-idle: true + test-on-borrow: false + test-on-return: false \ No newline at end of file diff --git a/hiatmp-admin-server/target/classes/com/hisense/hiatmp/adminServer/AdminServerMain.class b/hiatmp-admin-server/target/classes/com/hisense/hiatmp/adminServer/AdminServerMain.class index 809bb1c29d30d4a1faa768a7df6b2172ac2f2e7b..ec9f9abda302f9ad2f242e98065f567c82b4a593 100644 GIT binary patch delta 184 zcmdnZwuD{k)W2Q(7#J8#7!i+E1@iOseG>}`Qj3C<6Z5PY8Cc5_b4pVg8B~+=bM-PZi&OK8 zQ-O41Np68&VoGjiUT|trS!$79E?Cp#1&kJKay$(33<{I)F+ODEoqT}Fo|T`0ok3tS d3$u>67y~nd2+(n&KrF_<$RHlgz*x*60RSywFvS1> delta 78 zcmZ3&zMDL+4RHVf diff --git a/hiatmp-api-server/pom.xml b/hiatmp-api-server/pom.xml new file mode 100644 index 0000000..97382bc --- /dev/null +++ b/hiatmp-api-server/pom.xml @@ -0,0 +1,78 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.2.6.RELEASE + + + + hiatmp-api-server + + + 8 + 8 + UTF-8 + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-autoconfigure + + + org.mybatis + mybatis-spring + 2.1.2 + compile + + + + org.projectlombok + lombok + + + + + + + + + com.baomidou + mybatis-plus-annotation + 3.5.7 + compile + + + + com.baomidou + mybatis-plus-boot-starter + 3.5.7 + + + + com.baomidou + mybatis-plus-core + 3.5.7 + + + + + + + + + + org.postgresql + postgresql + + + + \ No newline at end of file diff --git a/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/SpringApplicationMain.java b/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/SpringApplicationMain.java new file mode 100644 index 0000000..60f278e --- /dev/null +++ b/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/SpringApplicationMain.java @@ -0,0 +1,14 @@ +package com.hisense.hiatmp.urbantraffic; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + + +@SpringBootApplication +@MapperScan("com.hisense.hiatmp.urbantraffic.mapper") +public class SpringApplicationMain { + public static void main(String[] args) { + SpringApplication.run(SpringApplicationMain.class, args); + } +} diff --git a/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/controller/loginController.java b/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/controller/loginController.java new file mode 100644 index 0000000..76695d9 --- /dev/null +++ b/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/controller/loginController.java @@ -0,0 +1,56 @@ +package com.hisense.hiatmp.urbantraffic.controller; + + +import com.hisense.hiatmp.urbantraffic.entity.User; +import com.hisense.hiatmp.urbantraffic.result.Result; +import com.hisense.hiatmp.urbantraffic.service.IUserService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.List; +import java.util.Map; + +@RestController +@RequestMapping("/api") +public class loginController { + + @Autowired + IUserService userService; + + @PostMapping("login") + public Result login(@RequestBody Map person) { + String username = person.get("username"); + String password = person.get("password"); + + if(username != null && password != null){ + List user = userService.list(); + if(user.isEmpty()){ +// return new Response("登录失败:用户名不存在", -1, false); + return Result.fail(); + }else { + if (user.get(0).getCuserpwd().equals(password)){ +// return new Response("登录成功", 1, true); + return Result.ok(user.get(0)); + }else { +// return new Response("登录失败:密码错误", -1, false); + return Result.fail(user.get(0)); + } + } + }else { +// return new Response("登录失败:用户名密码不能为空",-1,false); + return Result.fail(); + } + } + + // 查询所有用户 + @GetMapping("/findAll") + public Result findAll(){ + + // 调用service + List list = userService.list(); + return Result.ok(list); + } + + + +} diff --git a/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/entity/User.java b/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/entity/User.java new file mode 100644 index 0000000..8ce8188 --- /dev/null +++ b/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/entity/User.java @@ -0,0 +1,20 @@ +package com.hisense.hiatmp.urbantraffic.entity; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +@Data +@TableName("operator") +public class User { + + @TableField("nuserid") + String nuserid; + + @TableField("cusername") + String cusername; + + @TableField("cuserpwd") + String cuserpwd; + +} diff --git a/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/mapper/UserMapper.java b/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/mapper/UserMapper.java new file mode 100644 index 0000000..bb6bcba --- /dev/null +++ b/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/mapper/UserMapper.java @@ -0,0 +1,9 @@ +package com.hisense.hiatmp.urbantraffic.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hisense.hiatmp.urbantraffic.entity.User; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface UserMapper extends BaseMapper { +} diff --git a/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/result/Result.java b/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/result/Result.java new file mode 100644 index 0000000..1503c7b --- /dev/null +++ b/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/result/Result.java @@ -0,0 +1,56 @@ +package com.hisense.hiatmp.urbantraffic.result; + +import lombok.Data; + +@Data +public class Result { + + private Integer code;//状态码 + private String message;//返回信息 + private T data;//数据 + + //私有化 + private Result() {} + + //封装返回是数据 + public static Result build(T body, ResultCodeEnum resultCodeEnum) { + Result result = new Result<>(); + //封装数据 + if(body != null) { + result.setData(body); + } + //状态码 + result.setCode(resultCodeEnum.getCode()); + //返回信息 + result.setMessage(resultCodeEnum.getMessage()); + return result; + } + + //成功 + public static Result ok() { + return build(null,ResultCodeEnum.SUCCESS); + } + + public static Result ok(T data) { + return build(data,ResultCodeEnum.SUCCESS); + } + + //失败 + public static Result fail() { + return build(null,ResultCodeEnum.FAIL); + } + + public static Result fail(T data) { + return build(data,ResultCodeEnum.FAIL); + } + + public Result message(String msg){ + this.setMessage(msg); + return this; + } + + public Result code(Integer code){ + this.setCode(code); + return this; + } +} diff --git a/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/result/ResultCodeEnum.java b/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/result/ResultCodeEnum.java new file mode 100644 index 0000000..277c3d6 --- /dev/null +++ b/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/result/ResultCodeEnum.java @@ -0,0 +1,23 @@ +package com.hisense.hiatmp.urbantraffic.result; + +import lombok.Getter; + +@Getter +public enum ResultCodeEnum { + + SUCCESS(200,"成功"), + FAIL(201, "失败"), + LOGIN_ERROR(208,"未登录"), + SERVICE_ERROR(2012,"服务异常"), + DATA_ERROR(204,"数据异常"), + PERMISSION(209,"没有权限"), + ; + + private Integer code; + private String message; + + private ResultCodeEnum(Integer code, String message) { + this.code = code; + this.message = message; + } +} diff --git a/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/service/IUserService.java b/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/service/IUserService.java new file mode 100644 index 0000000..a20045f --- /dev/null +++ b/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/service/IUserService.java @@ -0,0 +1,10 @@ +package com.hisense.hiatmp.urbantraffic.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.hisense.hiatmp.urbantraffic.entity.User; + +public interface IUserService extends IService { + +// List queryByName(String username); + +} diff --git a/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/service/impl/IUserServiceImpl.java b/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/service/impl/IUserServiceImpl.java new file mode 100644 index 0000000..60a4ad9 --- /dev/null +++ b/hiatmp-api-server/src/main/java/com/hisense/hiatmp/urbantraffic/service/impl/IUserServiceImpl.java @@ -0,0 +1,13 @@ +package com.hisense.hiatmp.urbantraffic.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +import com.hisense.hiatmp.urbantraffic.entity.User; +import com.hisense.hiatmp.urbantraffic.mapper.UserMapper; +import com.hisense.hiatmp.urbantraffic.service.IUserService; +import org.springframework.stereotype.Service; + +@Service +public class IUserServiceImpl extends ServiceImpl implements IUserService { + +} diff --git a/hiatmp-api-server/src/main/resources/application.yml b/hiatmp-api-server/src/main/resources/application.yml new file mode 100644 index 0000000..fcb4f74 --- /dev/null +++ b/hiatmp-api-server/src/main/resources/application.yml @@ -0,0 +1,30 @@ +server: + port: 8800 + +####服务监控server端 +spring: + application: + name: hiatmp-api-server + +# security: +# user: +# name: hisense +# password: N5HWw9Hn3jxD + + datasource: + driver-class-name: org.postgresql.Driver + url: jdbc:postgresql://118.89.79.160:5432/postgres + username: postgres + password: postgres123 + +# type: com.alibaba.druid.pool.DruidDataSource + # 配置获取连接等待超时的时间,单位毫秒 + maxWait: 60000 + # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒 + time-between-eviction-runs-millis: 60000 + # 配置一个连接在池中最小生存的时间,单位毫秒 + min-evictable-idle-time-millis: 300000 + validation-query: SELECT 1 FROM DUAL + test-while-idle: true + test-on-borrow: false + test-on-return: false \ No newline at end of file diff --git a/hiatmp-base/src/main/resources/application.yml b/hiatmp-base/src/main/resources/application.yml index 9ff1e92..5d301ad 100644 --- a/hiatmp-base/src/main/resources/application.yml +++ b/hiatmp-base/src/main/resources/application.yml @@ -1,59 +1,77 @@ server: - port: 1959 - servlet: - context-path: /HiatmpPro/commond + port: 1959 + servlet: + context-path: /HiatmpPro/commond #运行模式 开发环境:dev 测试环境:test 生产环境: production run-mode: dev spring: - application: - name: urbantraffic-hiatmp-base - cloud: - nacos: - discovery: - server-addr: 10.16.3.178:8848 - #server-addr: localhost:8848 - #6.1管控平台数据库地址、账号、密码,根据项目现场进行修改 - datasource: - primary: - jdbc-url: jdbc:postgresql://10.16.3.27:5432/hiatmpdb - username: hiatmp - password: hiatmp - # 下面为数据库连接池相关参数,一般不需修改 - driver-class-name: org.postgresql.Driver - type: com.alibaba.druid.pool.DruidDataSource - # 配置获取连接等待超时的时间,单位毫秒 - maxWait: 60000 - # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒 - time-between-eviction-runs-millis: 60000 - # 配置一个连接在池中最小生存的时间,单位毫秒 - min-evictable-idle-time-millis: 300000 - validation-query: SELECT 1 FROM DUAL - test-while-idle: true - test-on-borrow: false - test-on-return: false - redis: - database: 0 - host: 10.16.3.179 - port: 6379 - password: Hiface.1 - timeout: 10000 + application: + name: urbantraffic-hiatmp-base +# cloud: +# nacos:` +# discovery: +## server-addr: 10.16.3.178:8848 +# server-addr: localhost:8848 + #6.1管控平台数据库地址、账号、密码,根据项目现场进行修改 + datasource: + driver-class-name: org.postgresql.Driver + url: jdbc:postgresql://118.89.79.160:5432/postgres + username: postgres + password: postgres123 + + type: com.alibaba.druid.pool.DruidDataSource + # 配置获取连接等待超时的时间,单位毫秒 + maxWait: 60000 + # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒 + time-between-eviction-runs-millis: 60000 + # 配置一个连接在池中最小生存的时间,单位毫秒 + min-evictable-idle-time-millis: 300000 + validation-query: SELECT 1 FROM DUAL + test-while-idle: true + test-on-borrow: false + test-on-return: false + # datasource: +# primary: +# jdbc-url: jdbc:postgresql://118.89.79.160:5432/postgres +# username: postgres +# password: postgres123 +# # 下面为数据库连接池相关参数,一般不需修改 +# driver-class-name: org.postgresql.Driver +# type: com.alibaba.druid.pool.DruidDataSource +# # 配置获取连接等待超时的时间,单位毫秒 +# maxWait: 60000 +# # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒 +# time-between-eviction-runs-millis: 60000 +# # 配置一个连接在池中最小生存的时间,单位毫秒 +# min-evictable-idle-time-millis: 300000 +# validation-query: SELECT 1 FROM DUAL +# test-while-idle: true +# test-on-borrow: false +# test-on-return: false + redis: + database: 0 +# host: 10.16.3.179 + host: 127.0.0.1 + port: 6379 + password: + timeout: 10000 ssoUrl: http://10.16.3.178:801 # 下面部分为mybatis及log配置,一般不需修改 mybatis: - mapper-locations: classpath*:sql-mapper/*.xml - mapUnderscoreToCamelCase: true + mapper-locations: classpath*:sql-mapper/*.xml + mapUnderscoreToCamelCase: true logging: - config: classpath:log4j2.xml + config: classpath:log4j2.xml jasypt: - encryptor: - password: G0CvDz7oJn6 - encrypted: 0 - keys: - - spring.datasource.primary.password - - spring.datasource.primary.username - - spring.datasource2.password - - spring.datasource2.username - - spring.datasource3.password - - spring.datasource3.username + encryptor: + password: G0CvDz7oJn6 + encrypted: 0 + keys: + - spring.datasource.primary.password + - spring.datasource.primary.username + - spring.datasource2.password + - spring.datasource2.username + - spring.datasource3.password + - spring.datasource3.username addUserUrl: 157.3.132.31:50083/system/user/gs/add \ No newline at end of file diff --git a/hiatmp-gateway/target/classes/com/hisense/hiatmp/gateway/filters/SsoFilter.class b/hiatmp-gateway/target/classes/com/hisense/hiatmp/gateway/filters/SsoFilter.class index 03aa40ba32a0a31facb66a31e2bda04fe13a9f02..76612a7cf981f972dceb9789b75b7673fc4f18df 100644 GIT binary patch delta 380 zcmW-dJ4nJ|6vfZycYS41K`*Nz5W=C5P$LVBps}H_h7cr|qz4XBwgfc^F>}wTH{i95d;LC(YjR@5 z@9S`jzJ?01X*PFL;?DvS?&LQi3+@P(9Y hk>9{25|ATR8krifg3RJuhJK`9EFD>=oVA{o`~z@)YPkRa delta 345 zcmW-dJuHJ^6osF+@2#q~5feoWgjhuSXCq7|R)a{GBz8=~Vkm7S{TM9l5+eB$gpyK= zNQCGj5s808>%V2=ZSV4&oO|vWZX&AYqG~hIq{ghF#ujV6wbn{`>h1TYUXOc;GO9op z?C$m!hdQxG1IxUc|#XHG36x0uoOAMM2V9em6%rfB2_`J6scErw#1wSij<(t zOU!BrkE=d=Fg~z?9FBHiy@d!RZWsZn>kv zWPIH7VAKE+uGpjkm(22Lwwg+r;)!R3Y8mH+EKa(lpPb2+ajuiRvWANry}_ID%GIAE q&O0BtC60qnzD$dG1D9klW7IeK8dOOZ_%Weh<9m%`>g=4.4.0 2.1.4.RELEASE 5.1.6.RELEASE - 3.5.2 + 2.1.0 1.23 2.2.2 diff --git a/log/monitor-info.log b/log/monitor-info.log index fdee082..3a2c89b 100644 --- a/log/monitor-info.log +++ b/log/monitor-info.log @@ -1,18 +1,38 @@ -2024-07-08 21:33:39,565 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - Starting AdminServerMain on Lyblue_mc with PID 16724 (D:\DEV\Code\highDanger\urbantraffic-parent\hiatmp-admin-server\target\classes started by 云曦 in D:\DEV\Code\highDanger\urbantraffic-parent) -2024-07-08 21:33:39,573 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - No active profile set, falling back to default profiles: default -2024-07-08 21:33:40,450 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-31002"] -2024-07-08 21:33:40,451 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat] -2024-07-08 21:33:40,451 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.33] -2024-07-08 21:33:40,518 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext -2024-07-08 21:33:41,563 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-31002"] -2024-07-08 21:33:41,628 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - Started AdminServerMain in 2.305 seconds (JVM running for 3.632) -2024-07-08 21:33:42,492 [RMI TCP Connection(7)-192.168.3.52] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet' -2024-07-08 21:43:02,779 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - Starting AdminServerMain on Lyblue_mc with PID 26160 (D:\DEV\Code\highDanger\urbantraffic-parent\hiatmp-admin-server\target\classes started by 云曦 in D:\DEV\Code\highDanger\urbantraffic-parent) -2024-07-08 21:43:02,786 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - No active profile set, falling back to default profiles: default -2024-07-08 21:43:03,677 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-31002"] -2024-07-08 21:43:03,679 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat] -2024-07-08 21:43:03,679 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.33] -2024-07-08 21:43:03,762 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext -2024-07-08 21:43:04,800 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-31002"] -2024-07-08 21:43:04,816 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - Started AdminServerMain in 2.286 seconds (JVM running for 3.394) -2024-07-08 21:43:05,509 [RMI TCP Connection(5)-192.168.3.52] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet' +2024-07-09 00:06:08,027 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - Starting AdminServerMain on Lyblue_mc with PID 16896 (D:\DEV\Code\highDanger\urbantraffic-parent\hiatmp-admin-server\target\classes started by 云曦 in D:\DEV\Code\highDanger\urbantraffic-parent) +2024-07-09 00:06:08,038 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - No active profile set, falling back to default profiles: default +2024-07-09 00:06:08,843 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-31002"] +2024-07-09 00:06:08,844 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat] +2024-07-09 00:06:08,845 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.33] +2024-07-09 00:06:08,938 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext +2024-07-09 00:06:09,778 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-31002"] +2024-07-09 00:06:09,795 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - Started AdminServerMain in 2.016 seconds (JVM running for 3.145) +2024-07-09 00:06:10,211 [RMI TCP Connection(2)-192.168.3.52] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet' +2024-07-09 07:53:50,289 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - Starting AdminServerMain on Lyblue_mc with PID 3872 (D:\DEV\Code\highDanger\urbantraffic-parent\hiatmp-admin-server\target\classes started by 云曦 in D:\DEV\Code\highDanger\urbantraffic-parent) +2024-07-09 07:53:50,297 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - No active profile set, falling back to default profiles: default +2024-07-09 07:53:51,318 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-31002"] +2024-07-09 07:53:51,319 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat] +2024-07-09 07:53:51,319 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.33] +2024-07-09 07:53:51,409 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext +2024-07-09 07:53:51,674 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat] +2024-07-09 07:58:27,707 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - Starting AdminServerMain on Lyblue_mc with PID 22700 (D:\DEV\Code\highDanger\urbantraffic-parent\hiatmp-admin-server\target\classes started by 云曦 in D:\DEV\Code\highDanger\urbantraffic-parent) +2024-07-09 07:58:27,712 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - No active profile set, falling back to default profiles: default +2024-07-09 07:58:28,571 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-31002"] +2024-07-09 07:58:28,571 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat] +2024-07-09 07:58:28,572 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.33] +2024-07-09 07:58:28,631 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext +2024-07-09 07:58:28,761 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat] +2024-07-09 08:01:29,653 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - Starting AdminServerMain on Lyblue_mc with PID 33336 (D:\DEV\Code\highDanger\urbantraffic-parent\hiatmp-admin-server\target\classes started by 云曦 in D:\DEV\Code\highDanger\urbantraffic-parent) +2024-07-09 08:01:29,658 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - No active profile set, falling back to default profiles: default +2024-07-09 08:01:30,514 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-31002"] +2024-07-09 08:01:30,515 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat] +2024-07-09 08:01:30,515 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.33] +2024-07-09 08:01:30,581 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext +2024-07-09 08:01:31,351 [main] WARN com.baomidou.mybatisplus.core.metadata.TableInfoHelper - Can not find table primary key in Class: "com.hisense.hiatmp.adminServer.entity.User". +2024-07-09 08:01:31,361 [main] WARN com.baomidou.mybatisplus.core.injector.DefaultSqlInjector - class com.hisense.hiatmp.adminServer.entity.User ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. +2024-07-09 08:01:32,325 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-31002"] +2024-07-09 08:01:32,339 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - Started AdminServerMain in 2.939 seconds (JVM running for 3.967) +2024-07-09 08:01:33,058 [RMI TCP Connection(3)-192.168.3.52] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet' +2024-07-09 08:01:33,061 [RMI TCP Connection(2)-192.168.3.52] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting... +2024-07-09 08:01:33,655 [RMI TCP Connection(2)-192.168.3.52] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed. +2024-07-09 08:05:09,312 [SpringContextShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated... +2024-07-09 08:05:09,316 [SpringContextShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed. diff --git a/log/test.log b/log/test.log index 248ebd8..02f35f0 100644 --- a/log/test.log +++ b/log/test.log @@ -1,75 +1,13 @@ -2024-07-08 22:00:36,116 [main] INFO com.alibaba.boot.nacos.config.util.NacosConfigPropertiesUtils - nacosConfigProperties : NacosConfigProperties{serverAddr='127.0.0.1:8848', contextPath='null', encode='null', endpoint='null', namespace='null', accessKey='null', secretKey='null', ramRoleName='null', autoRefresh=false, dataId='null', dataIds='null', group='DEFAULT_GROUP', type=null, maxRetry='null', configLongPollTimeout='null', configRetryTime='null', enableRemoteSyncConfig=false, extConfig=[], bootstrap=Bootstrap{enable=false, logEnable=false}} -2024-07-08 22:00:36,120 [main] INFO com.alibaba.boot.nacos.config.autoconfigure.NacosConfigApplicationContextInitializer - [Nacos Config Boot] : The preload configuration is not enabled -2024-07-08 22:00:36,267 [main] INFO com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor - Post-processing PropertySource instances -2024-07-08 22:00:36,306 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy -2024-07-08 22:00:36,307 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource bootstrap [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper -2024-07-08 22:00:36,307 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource systemProperties [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper -2024-07-08 22:00:36,307 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableMapPropertySourceWrapper -2024-07-08 22:00:36,309 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper -2024-07-08 22:00:36,309 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper -2024-07-08 22:00:36,339 [main] INFO com.ulisesbocchio.jasyptspringboot.filter.DefaultLazyPropertyFilter - Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter -2024-07-08 22:00:36,362 [main] INFO com.ulisesbocchio.jasyptspringboot.resolver.DefaultLazyPropertyResolver - Property Resolver custom Bean not found with name 'encryptablePropertyResolver'. Initializing Default Property Resolver -2024-07-08 22:00:36,363 [main] INFO com.ulisesbocchio.jasyptspringboot.detector.DefaultLazyPropertyDetector - Property Detector custom Bean not found with name 'encryptablePropertyDetector'. Initializing Default Property Detector -2024-07-08 22:00:36,709 [main] INFO com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesConfiguration - Bootstraping jasypt-string-boot auto configuration in context: application-1 -2024-07-08 22:00:36,710 [main] INFO com.alibaba.boot.nacos.config.util.NacosConfigPropertiesUtils - nacosConfigProperties : NacosConfigProperties{serverAddr='127.0.0.1:8848', contextPath='null', encode='null', endpoint='null', namespace='null', accessKey='null', secretKey='null', ramRoleName='null', autoRefresh=false, dataId='null', dataIds='null', group='DEFAULT_GROUP', type=null, maxRetry='null', configLongPollTimeout='null', configRetryTime='null', enableRemoteSyncConfig=false, extConfig=[], bootstrap=Bootstrap{enable=false, logEnable=false}} -2024-07-08 22:00:36,710 [main] INFO com.alibaba.boot.nacos.config.autoconfigure.NacosConfigApplicationContextInitializer - [Nacos Config Boot] : The preload configuration is not enabled -2024-07-08 22:00:36,710 [main] INFO com.hisense.hiatmp.base.BaseApplication - No active profile set, falling back to default profiles: default -2024-07-08 22:00:37,564 [main] INFO com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor - Post-processing PropertySource instances -2024-07-08 22:00:37,577 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy -2024-07-08 22:00:37,577 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource servletConfigInitParams [org.springframework.core.env.PropertySource$StubPropertySource] to EncryptablePropertySourceWrapper -2024-07-08 22:00:37,577 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource servletContextInitParams [org.springframework.core.env.PropertySource$StubPropertySource] to EncryptablePropertySourceWrapper -2024-07-08 22:00:37,577 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource systemProperties [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper -2024-07-08 22:00:37,577 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableMapPropertySourceWrapper -2024-07-08 22:00:37,578 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper -2024-07-08 22:00:37,578 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource applicationConfig: [classpath:/application.properties] [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper -2024-07-08 22:00:37,578 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource applicationConfig: [classpath:/application.yml] [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper -2024-07-08 22:00:37,578 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper -2024-07-08 22:00:37,578 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource defaultProperties [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper -2024-07-08 22:00:37,610 [main] INFO com.ulisesbocchio.jasyptspringboot.filter.DefaultLazyPropertyFilter - Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter -2024-07-08 22:00:37,818 [main] INFO com.ulisesbocchio.jasyptspringboot.resolver.DefaultLazyPropertyResolver - Property Resolver custom Bean not found with name 'encryptablePropertyResolver'. Initializing Default Property Resolver -2024-07-08 22:00:37,819 [main] INFO com.ulisesbocchio.jasyptspringboot.detector.DefaultLazyPropertyDetector - Property Detector custom Bean not found with name 'encryptablePropertyDetector'. Initializing Default Property Detector -2024-07-08 22:00:38,053 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-1959"] -2024-07-08 22:00:38,059 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat] -2024-07-08 22:00:38,060 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.17] -2024-07-08 22:00:38,150 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/HiatmpPro/commond] - Initializing Spring embedded WebApplicationContext -2024-07-08 22:00:38,262 [main] INFO com.hisense.hiatmp.common.config.DataSourceConfig - 第一数据库连接池创建中....... -2024-07-08 22:00:39,285 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] -2024-07-08 22:00:39,324 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources. -2024-07-08 22:00:39,324 [main] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. -2024-07-08 22:00:39,328 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources. -2024-07-08 22:00:39,328 [main] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. -2024-07-08 22:00:40,992 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper - Context refreshed -2024-07-08 22:00:41,008 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper - Found 1 custom documentation plugin(s) -2024-07-08 22:00:41,032 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner - Scanning for api listing references -2024-07-08 22:00:41,244 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-1959"] -2024-07-08 22:00:44,372 [main] ERROR com.alibaba.cloud.nacos.registry.NacosServiceRegistry - nacos registry, urbantraffic-hiatmp-base register failed...NacosRegistration{nacosDiscoveryProperties=NacosDiscoveryProperties{serverAddr='10.16.3.178:8848', endpoint='', namespace='', watchDelay=30000, logName='', service='urbantraffic-hiatmp-base', weight=1.0, clusterName='DEFAULT', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='192.168.64.1', networkInterface='', port=1959, secure=false, accessKey='', secretKey=''}}, -java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/instance after all servers([10.16.3.178:8848]) tried: failed to req API:10.16.3.178:8848/nacos/v1/ns/instance. code:500 msg: java.net.SocketTimeoutException: connect timed out - at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:464) ~[nacos-client-1.1.1.jar:?] - at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:386) ~[nacos-client-1.1.1.jar:?] - at com.alibaba.nacos.client.naming.net.NamingProxy.registerService(NamingProxy.java:188) ~[nacos-client-1.1.1.jar:?] - at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:205) ~[nacos-client-1.1.1.jar:?] - at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:184) ~[nacos-client-1.1.1.jar:?] - at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.register(NacosServiceRegistry.java:61) [spring-cloud-alibaba-nacos-discovery-2.1.0.RELEASE.jar:2.1.0.RELEASE] - at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.register(AbstractAutoServiceRegistration.java:239) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] - at com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration.register(NacosAutoServiceRegistration.java:74) [spring-cloud-alibaba-nacos-discovery-2.1.0.RELEASE.jar:2.1.0.RELEASE] - at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.start(AbstractAutoServiceRegistration.java:138) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] - at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.bind(AbstractAutoServiceRegistration.java:101) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] - at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:88) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] - at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:47) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] - at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:166) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at com.hisense.hiatmp.base.BaseApplication.main(BaseApplication.java:19) [classes/:?] -2024-07-08 22:00:44,375 [main] INFO com.hisense.hiatmp.base.BaseApplication - Started BaseApplication in 8.739 seconds (JVM running for 9.765) -2024-07-08 22:00:44,376 [main] INFO com.hisense.hiatmp.common.encrypt.EncryptedDetector - ==============配置项自动加密已触发============ -2024-07-08 22:00:44,376 [main] INFO com.hisense.hiatmp.common.encrypt.EncryptedDetector - ==============配置项自动加密已结束,未用脚本启动或者yml参数未配置正确,加密失败!============ +2024-07-09 08:05:14,191 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - Starting AdminServerMain on Lyblue_mc with PID 32680 (D:\DEV\Code\highDanger\urbantraffic-parent\hiatmp-admin-server\target\classes started by 云曦 in D:\DEV\Code\highDanger\urbantraffic-parent) +2024-07-09 08:05:14,197 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - No active profile set, falling back to default profiles: default +2024-07-09 08:05:15,089 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-31002"] +2024-07-09 08:05:15,090 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat] +2024-07-09 08:05:15,090 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.33] +2024-07-09 08:05:15,171 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext +2024-07-09 08:05:16,057 [main] WARN com.baomidou.mybatisplus.core.metadata.TableInfoHelper - Can not find table primary key in Class: "com.hisense.hiatmp.adminServer.entity.User". +2024-07-09 08:05:16,064 [main] WARN com.baomidou.mybatisplus.core.injector.DefaultSqlInjector - class com.hisense.hiatmp.adminServer.entity.User ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. +2024-07-09 08:05:16,976 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-31002"] +2024-07-09 08:05:16,995 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - Started AdminServerMain in 3.068 seconds (JVM running for 4.117) +2024-07-09 08:05:17,402 [RMI TCP Connection(1)-192.168.3.52] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet' +2024-07-09 08:05:17,404 [RMI TCP Connection(2)-192.168.3.52] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting... +2024-07-09 08:05:18,038 [RMI TCP Connection(2)-192.168.3.52] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed. diff --git a/log/warn.log b/log/warn.log index f3ce01f..067c7f4 100644 --- a/log/warn.log +++ b/log/warn.log @@ -1,60 +1,2 @@ -2024-07-08 21:44:40,102 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources. -2024-07-08 21:44:40,107 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources. -2024-07-08 21:44:45,159 [main] ERROR com.alibaba.cloud.nacos.registry.NacosServiceRegistry - nacos registry, hiatmp-log register failed...NacosRegistration{nacosDiscoveryProperties=NacosDiscoveryProperties{serverAddr='10.16.3.178:8848', endpoint='', namespace='', watchDelay=30000, logName='', service='hiatmp-log', weight=1.0, clusterName='DEFAULT', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='192.168.64.1', networkInterface='', port=2999, secure=false, accessKey='', secretKey=''}}, -java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/instance after all servers([10.16.3.178:8848]) tried: failed to req API:10.16.3.178:8848/nacos/v1/ns/instance. code:500 msg: java.net.SocketTimeoutException: connect timed out - at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:464) ~[nacos-client-1.1.1.jar:?] - at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:386) ~[nacos-client-1.1.1.jar:?] - at com.alibaba.nacos.client.naming.net.NamingProxy.registerService(NamingProxy.java:188) ~[nacos-client-1.1.1.jar:?] - at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:205) ~[nacos-client-1.1.1.jar:?] - at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:184) ~[nacos-client-1.1.1.jar:?] - at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.register(NacosServiceRegistry.java:61) [spring-cloud-alibaba-nacos-discovery-2.1.0.RELEASE.jar:2.1.0.RELEASE] - at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.register(AbstractAutoServiceRegistration.java:239) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] - at com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration.register(NacosAutoServiceRegistration.java:74) [spring-cloud-alibaba-nacos-discovery-2.1.0.RELEASE.jar:2.1.0.RELEASE] - at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.start(AbstractAutoServiceRegistration.java:138) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] - at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.bind(AbstractAutoServiceRegistration.java:101) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] - at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:88) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] - at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:47) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] - at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:166) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at com.hisense.hiatmp.log.LogApplication.main(LogApplication.java:23) [classes/:?] -2024-07-08 22:00:39,324 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources. -2024-07-08 22:00:39,328 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources. -2024-07-08 22:00:44,372 [main] ERROR com.alibaba.cloud.nacos.registry.NacosServiceRegistry - nacos registry, urbantraffic-hiatmp-base register failed...NacosRegistration{nacosDiscoveryProperties=NacosDiscoveryProperties{serverAddr='10.16.3.178:8848', endpoint='', namespace='', watchDelay=30000, logName='', service='urbantraffic-hiatmp-base', weight=1.0, clusterName='DEFAULT', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='192.168.64.1', networkInterface='', port=1959, secure=false, accessKey='', secretKey=''}}, -java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/instance after all servers([10.16.3.178:8848]) tried: failed to req API:10.16.3.178:8848/nacos/v1/ns/instance. code:500 msg: java.net.SocketTimeoutException: connect timed out - at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:464) ~[nacos-client-1.1.1.jar:?] - at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:386) ~[nacos-client-1.1.1.jar:?] - at com.alibaba.nacos.client.naming.net.NamingProxy.registerService(NamingProxy.java:188) ~[nacos-client-1.1.1.jar:?] - at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:205) ~[nacos-client-1.1.1.jar:?] - at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:184) ~[nacos-client-1.1.1.jar:?] - at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.register(NacosServiceRegistry.java:61) [spring-cloud-alibaba-nacos-discovery-2.1.0.RELEASE.jar:2.1.0.RELEASE] - at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.register(AbstractAutoServiceRegistration.java:239) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] - at com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration.register(NacosAutoServiceRegistration.java:74) [spring-cloud-alibaba-nacos-discovery-2.1.0.RELEASE.jar:2.1.0.RELEASE] - at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.start(AbstractAutoServiceRegistration.java:138) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] - at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.bind(AbstractAutoServiceRegistration.java:101) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] - at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:88) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] - at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:47) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] - at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:166) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] - at com.hisense.hiatmp.base.BaseApplication.main(BaseApplication.java:19) [classes/:?] +2024-07-09 08:01:31,351 [main] WARN com.baomidou.mybatisplus.core.metadata.TableInfoHelper - Can not find table primary key in Class: "com.hisense.hiatmp.adminServer.entity.User". +2024-07-09 08:01:31,361 [main] WARN com.baomidou.mybatisplus.core.injector.DefaultSqlInjector - class com.hisense.hiatmp.adminServer.entity.User ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. diff --git a/pom.xml b/pom.xml index a252f89..b967c57 100644 --- a/pom.xml +++ b/pom.xml @@ -4,9 +4,12 @@ org.springframework.boot spring-boot-starter-parent - 2.1.4.RELEASE + 2.2.6.RELEASE + + hiatmp-api-server + 1.8 Greenwich.SR1 @@ -90,11 +93,11 @@ mapper-core ${mapper-core.version} --> - - org.mybatis - mybatis - ${mybatis.version} - + + + + + oracle ojdbc