diff --git a/.idea/misc.xml b/.idea/misc.xml
index f149eed..0e21bf6 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -10,12 +10,10 @@
-
-
-
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
index 35eb1dd..94a25f7 100644
--- a/.idea/vcs.xml
+++ b/.idea/vcs.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index d7d20b8..1ac928b 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,337 +1,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {
- "associatedIndex": 4
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1764725740407
-
-
- 1764725740407
-
-
-
-
-
- 1764730287773
-
-
-
- 1764730287773
-
-
-
- 1764741286486
-
-
-
- 1764741286487
-
-
-
- 1764742057175
-
-
-
- 1764742057175
-
-
-
- 1764744907817
-
-
-
- 1764744907817
-
-
-
- 1764830303214
-
-
-
- 1764830303214
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- file://$PROJECT_DIR$/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/controller/UserController.java
- 35
-
-
-
- file://$PROJECT_DIR$/HnRealNameBmw/src/main/java/com/bonus/hnrn/rnbmw/manager/config/SecurityHandlerConfig.java
- 96
-
-
-
-
-
+ {}
\ No newline at end of file
diff --git a/HnRealNameBmw/src/main/java/com/bonus/hnrn/rnbmw/login/core/constant/SecurityConstants.java b/HnRealNameBmw/src/main/java/com/bonus/hnrn/rnbmw/login/core/constant/SecurityConstants.java
index 5de7b36..5049417 100644
--- a/HnRealNameBmw/src/main/java/com/bonus/hnrn/rnbmw/login/core/constant/SecurityConstants.java
+++ b/HnRealNameBmw/src/main/java/com/bonus/hnrn/rnbmw/login/core/constant/SecurityConstants.java
@@ -17,6 +17,8 @@ public class SecurityConstants
*/
public static final String DETAILS_USERNAME = "username";
+ public static final String DATA_TYPE = "data_type";
+
/**
* 授权信息字段
*/
diff --git a/HnRealNameBmw/src/main/java/com/bonus/hnrn/rnbmw/login/service/LoginService.java b/HnRealNameBmw/src/main/java/com/bonus/hnrn/rnbmw/login/service/LoginService.java
index d7787a5..073d2be 100644
--- a/HnRealNameBmw/src/main/java/com/bonus/hnrn/rnbmw/login/service/LoginService.java
+++ b/HnRealNameBmw/src/main/java/com/bonus/hnrn/rnbmw/login/service/LoginService.java
@@ -7,8 +7,11 @@ import com.bonus.hnrn.rnbmw.manager.utils.AESCBCUtils;
import com.github.pagehelper.util.StringUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;
+import java.util.Map;
+
@Service
@Slf4j
public class LoginService {
@@ -16,6 +19,11 @@ public class LoginService {
@Autowired
private LoginDao mapper;
+ @Autowired
+ private BCryptPasswordEncoder passwordEncoder;
+ @Autowired
+ private SysTokenService sysTokenService;
+
/**
* 系统登录
* @param bean
@@ -30,11 +38,18 @@ public class LoginService {
if(StringUtil.isEmpty(bean.getUsername() ) || StringUtil.isEmpty(bean.getPassword())) {
return AjaxResult.error("请输入账号及密码");
}
+ System.err.println(passwordEncoder.encode(password));
+ System.err.println(password);
LoginFormVo loginFormVo = mapper.getUserLogin(bean);
if(loginFormVo == null) {
- return AjaxResult.error("用户不存在");
+ return AjaxResult.error("用户不存在!");
}
- return AjaxResult.success(loginFormVo);
+ if (!passwordEncoder.matches(password, loginFormVo.getPassword())) {
+ return AjaxResult.error("密码错误!");
+ }
+ //密码错误
+ Map map=sysTokenService.createToken(loginFormVo);
+ return AjaxResult.success(map);
}catch (Exception e){
log.error(e.toString(),e);
}
diff --git a/HnRealNameBmw/src/main/java/com/bonus/hnrn/rnbmw/login/service/SysTokenService.java b/HnRealNameBmw/src/main/java/com/bonus/hnrn/rnbmw/login/service/SysTokenService.java
index f951361..b98a3d1 100644
--- a/HnRealNameBmw/src/main/java/com/bonus/hnrn/rnbmw/login/service/SysTokenService.java
+++ b/HnRealNameBmw/src/main/java/com/bonus/hnrn/rnbmw/login/service/SysTokenService.java
@@ -61,11 +61,12 @@ public class SysTokenService {
claimsMap.put(SecurityConstants.USER_KEY, token);
claimsMap.put(SecurityConstants.DETAILS_USER_ID, userId);
claimsMap.put(SecurityConstants.DETAILS_USERNAME, userName);
+ claimsMap.put(SecurityConstants.DATA_TYPE, loginUser.getDataType());
String accessToken = JwtUtils.createToken(claimsMap);
Map rspMap = new HashMap(16);
rspMap.put("access_token", accessToken);
rspMap.put("expires_in", EXPIRETIME);
- rspMap.put("isLogin", isLogin(String.valueOf(userId)));
+ rspMap.put("user", loginUser);
long tokenTime = getTokenTime();
//对token进行存储
redisService.setCacheObject(LOGIN_USER_KEY + userId, token, tokenTime, TimeUnit.MINUTES);
@@ -185,7 +186,7 @@ public class SysTokenService {
private Long getTokenTime(){
long tokenTime = 20L;
String redisResult = redisService.getCacheObject("sys_config:"+ "sys.visit.tokentime");
- if(!redisResult.isEmpty()) {
+ if(StringUtils.isNotEmpty(redisResult)) {
tokenTime = Long.parseLong(redisResult);
}else {
Long result = 60*60*1000* 2L;
diff --git a/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/config/BnsSecurityConfig.java b/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/config/BnsSecurityConfig.java
index 2da6634..8739faa 100644
--- a/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/config/BnsSecurityConfig.java
+++ b/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/config/BnsSecurityConfig.java
@@ -94,7 +94,7 @@ public class BnsSecurityConfig extends WebSecurityConfigurerAdapter {
.and()
// 授权配置
.authorizeRequests()
- .antMatchers("/login", "/logout", "/gzRealName/**").permitAll() // 匿名接口
+ .antMatchers("/login", "/logout", "/gzRealName/**","/publicLogin/**").permitAll() // 匿名接口
.anyRequest().authenticated() // 其他接口需认证
.and()
// 表单登录配置(前后端分离可简化)
diff --git a/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/config/TokenFilter.java b/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/config/TokenFilter.java
index 6e925ff..05cb1c2 100644
--- a/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/config/TokenFilter.java
+++ b/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/config/TokenFilter.java
@@ -31,9 +31,12 @@ public class TokenFilter extends OncePerRequestFilter {
private UserDetailsService userDetailsService;
private static final Long MINUTES_10 = 10 * 60 * 1000L;
+
+
@Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
throws ServletException, IOException {
+
String token = getToken(request);
if (StringUtils.isNotBlank(token)) {
UserBean loginUser = tokenService.getLoginUser(token);
diff --git a/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/controller/PublicLoginController.java b/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/controller/PublicLoginController.java
new file mode 100644
index 0000000..ae078ec
--- /dev/null
+++ b/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/controller/PublicLoginController.java
@@ -0,0 +1,30 @@
+package com.bonus.hnrn.rnmw.core.controller;
+
+import com.bonus.hnrn.rnmw.core.entity.LoginForm;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * 默认公共登录方法
+ */
+@RestController
+@RequestMapping(value = "/publicLogin")
+public class PublicLoginController {
+
+ @Autowired
+ private PublicLoginService loginService;
+
+ @PostMapping("defaultLogin")
+ public void login(@RequestBody LoginForm token, HttpServletResponse response) {
+
+ loginService.login(token,response);
+
+
+ }
+
+}
diff --git a/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/controller/PublicLoginService.java b/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/controller/PublicLoginService.java
new file mode 100644
index 0000000..af7519d
--- /dev/null
+++ b/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/controller/PublicLoginService.java
@@ -0,0 +1,60 @@
+package com.bonus.hnrn.rnmw.core.controller;
+
+import com.bonus.hnrn.rnmw.core.dao.UserDao;
+import com.bonus.hnrn.rnmw.core.entity.LoginForm;
+import com.bonus.hnrn.rnmw.core.entity.UserBean;
+import com.bonus.hnrn.rnmw.core.service.TokenService;
+import com.bonus.hnrn.rnmw.core.util.AESCBCUtils;
+import com.bonus.hnrn.rnmw.core.util.ResponseUtil;
+import com.bonus.hnrn.rnmw.core.util.StringHelper;
+import com.bonus.hnrn.rnmw.core.util.Token;
+import org.springframework.http.HttpStatus;
+import org.springframework.security.authentication.AuthenticationCredentialsNotFoundException;
+import org.springframework.security.core.GrantedAuthority;
+import org.springframework.security.core.authority.SimpleGrantedAuthority;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import javax.servlet.http.HttpServletResponse;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * 系统登录
+ */
+@Service
+public class PublicLoginService {
+
+ @Resource(name = "userDao")
+ private UserDao dao;
+ @Resource(name = "tokenService")
+ private TokenService tokenService;
+
+ /**
+ * 系统登录
+ * @param us
+ * @param response
+ */
+ public void login(LoginForm us, HttpServletResponse response) {
+ String username = AESCBCUtils.decrypt(us.getUsername());
+ UserBean userBean = dao.findUserBeanByLoginName(username);
+ if (userBean == null) {
+ throw new AuthenticationCredentialsNotFoundException("用户名不存在");
+ } else {
+ //创建一个权限的集合
+ Collection authorities = new ArrayList<>();
+ authorities.add(new SimpleGrantedAuthority("ROLE_ADMIN"));
+ Map map = new HashMap<>();
+ Token token = tokenService.saveToken(userBean);
+ userBean.setToken(token.getToken());
+ if (StringHelper.isEmpty(userBean.getProId())) {
+ userBean.setProId("null");
+ }
+ map.put("status", "success");
+ map.put("user", userBean);
+ ResponseUtil.responseJson(response, HttpStatus.OK.value(), map);
+ }
+ }
+}
\ No newline at end of file
diff --git a/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/entity/LoginForm.java b/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/entity/LoginForm.java
new file mode 100644
index 0000000..ddadb8d
--- /dev/null
+++ b/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/entity/LoginForm.java
@@ -0,0 +1,11 @@
+package com.bonus.hnrn.rnmw.core.entity;
+
+import lombok.Data;
+
+@Data
+public class LoginForm {
+
+ private String username;
+
+ private String type;
+}
diff --git a/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/service/UserServiceImp.java b/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/service/UserServiceImp.java
index 89a327c..60f2218 100644
--- a/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/service/UserServiceImp.java
+++ b/HnRealNameMw/src/main/java/com/bonus/hnrn/rnmw/core/service/UserServiceImp.java
@@ -48,4 +48,7 @@ public class UserServiceImp implements UserDetailsService,UserService {
return userBean;
}
+
+
+
}
diff --git a/hn-gateway/bonus-common/bonus-common-core/bonus-common-core.iml b/hn-gateway/bonus-common/bonus-common-core/bonus-common-core.iml
deleted file mode 100644
index c3d8ef0..0000000
--- a/hn-gateway/bonus-common/bonus-common-core/bonus-common-core.iml
+++ /dev/null
@@ -1,851 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/hn-gateway/bonus-common/bonus-common-core/src/main/java/com/bonus/common/core/utils/JwtUtils.java b/hn-gateway/bonus-common/bonus-common-core/src/main/java/com/bonus/common/core/utils/JwtUtils.java
index b1152c4..58e0c97 100644
--- a/hn-gateway/bonus-common/bonus-common-core/src/main/java/com/bonus/common/core/utils/JwtUtils.java
+++ b/hn-gateway/bonus-common/bonus-common-core/src/main/java/com/bonus/common/core/utils/JwtUtils.java
@@ -46,9 +46,8 @@ public class JwtUtils
Claims claims = Jwts.parser().setSigningKey(secret).parseClaimsJws(token).getBody();
String username = getValue(claims, SecurityConstants.DETAILS_USERNAME);
if (!StringUtils.isEmpty(username)){
- String decryUsername = Sm4Utils.decrypt(username);
// System.out.print("****parseToken里解密用户名是:" + decryUsername);
- claims.put(SecurityConstants.DETAILS_USERNAME, decryUsername);
+ claims.put(SecurityConstants.DETAILS_USERNAME, username);
}
return claims;
}
diff --git a/hn-gateway/bonus-common/bonus-common-datascope/bonus-common-datascope.iml b/hn-gateway/bonus-common/bonus-common-datascope/bonus-common-datascope.iml
deleted file mode 100644
index 7046218..0000000
--- a/hn-gateway/bonus-common/bonus-common-datascope/bonus-common-datascope.iml
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/hn-gateway/bonus-common/bonus-common.iml b/hn-gateway/bonus-common/bonus-common.iml
deleted file mode 100644
index 1cbeb87..0000000
--- a/hn-gateway/bonus-common/bonus-common.iml
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/hn-gateway/bonus-gateway/bonus-gateway.iml b/hn-gateway/bonus-gateway/bonus-gateway.iml
deleted file mode 100644
index 7046218..0000000
--- a/hn-gateway/bonus-gateway/bonus-gateway.iml
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/hn-gateway/bonus-gateway/src/main/java/com/bonus/gateway/filter/AuthFilter.java b/hn-gateway/bonus-gateway/src/main/java/com/bonus/gateway/filter/AuthFilter.java
index ab8220c..4598e1d 100644
--- a/hn-gateway/bonus-gateway/src/main/java/com/bonus/gateway/filter/AuthFilter.java
+++ b/hn-gateway/bonus-gateway/src/main/java/com/bonus/gateway/filter/AuthFilter.java
@@ -49,9 +49,11 @@ public class AuthFilter implements GlobalFilter, Ordered {
ServerHttpRequest.Builder mutate = request.mutate();
String url = request.getURI().getPath();
- // 跳过不需要验证的路径
- if (StringUtils.matches(url, ignoreWhite.getWhites())) {
- return chain.filter(exchange);
+ if(!url.endsWith("/publicLogin/defaultLogin")){
+ // 跳过不需要验证的路径
+ if (StringUtils.matches(url, ignoreWhite.getWhites())) {
+ return chain.filter(exchange);
+ }
}
String token = getToken(request);
if (StringUtils.isEmpty(token)) {
diff --git a/hn-gateway/bonus-gateway/src/main/resources/banner.txt b/hn-gateway/bonus-gateway/src/main/resources/banner.txt
index 591c451..cd15d94 100644
--- a/hn-gateway/bonus-gateway/src/main/resources/banner.txt
+++ b/hn-gateway/bonus-gateway/src/main/resources/banner.txt
@@ -1,2 +1,3 @@
Spring Boot Version: ${spring-boot.version}
-Spring Application Name: ${spring.application.name}
\ No newline at end of file
+Spring REDIS Host: ${spring.redis.host}
+Spring redis Port: ${spring.redis.port}
\ No newline at end of file
diff --git a/hn-gateway/bonus-gateway/src/main/resources/bootstrap-dev.yml b/hn-gateway/bonus-gateway/src/main/resources/bootstrap-dev.yml
index 42737a2..de41b26 100644
--- a/hn-gateway/bonus-gateway/src/main/resources/bootstrap-dev.yml
+++ b/hn-gateway/bonus-gateway/src/main/resources/bootstrap-dev.yml
@@ -22,7 +22,7 @@ spring:
eager: true
transport:
# 控制台地址
- dashboard: 192.168.87.190:8848
+ dashboard: 192.168.0.14:18848
# nacos配置持久化
datasource:
ds1:
diff --git a/logs/sys-back.log.error b/logs/sys-back.log.error
deleted file mode 100644
index c89ba1a..0000000
--- a/logs/sys-back.log.error
+++ /dev/null
@@ -1,28 +0,0 @@
-2025-12-03 09:22:59,021 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -[LoggingFailureAnalysisReporter.java:40]-
-
-***************************
-APPLICATION FAILED TO START
-***************************
-
-Description:
-
-Web server failed to start. Port 1917 was already in use.
-
-Action:
-
-Identify and stop the process that's listening on port 1917 or configure this application to listen on another port.
-
-2025-12-03 09:37:16,396 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -[LoggingFailureAnalysisReporter.java:40]-
-
-***************************
-APPLICATION FAILED TO START
-***************************
-
-Description:
-
-Web server failed to start. Port 1917 was already in use.
-
-Action:
-
-Identify and stop the process that's listening on port 1917 or configure this application to listen on another port.
-
diff --git a/logs/sys-back.log.error.2025-11-28.0 b/logs/sys-back.log.error.2025-11-28.0
deleted file mode 100644
index b3b2c4f..0000000
--- a/logs/sys-back.log.error.2025-11-28.0
+++ /dev/null
@@ -1,236 +0,0 @@
-2025-11-28 13:08:01,572 [restartedMain] ERROR c.a.c.n.r.NacosServiceRegistry -[NacosServiceRegistry.java:66]- nacos registry, bonus-realname register failed...NacosRegistration{nacosDiscoveryProperties=NacosDiscoveryProperties{serverAddr='127.0.0.1:8848', endpoint='', namespace='b271faaa-9f87-4bc9-8118-7645b4f938e3', watchDelay=30000, logName='', service='bonus-realname', weight=1.0, clusterName='DEFAULT', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='192.168.0.38', networkInterface='', port=19118, secure=false, accessKey='', secretKey=''}},
-com.alibaba.nacos.api.exception.NacosException: Request nacos server failed:
- at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:279)
- at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.doRegisterService(NamingGrpcClientProxy.java:129)
- at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.registerService(NamingGrpcClientProxy.java:115)
- at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.registerService(NamingClientProxyDelegate.java:95)
- at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:145)
- at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:139)
- at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.register(NacosServiceRegistry.java:61)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.register(AbstractAutoServiceRegistration.java:232)
- at com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration.register(NacosAutoServiceRegistration.java:74)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.start(AbstractAutoServiceRegistration.java:133)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.bind(AbstractAutoServiceRegistration.java:98)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:86)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:47)
- at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
- at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
- at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
- at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421)
- at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378)
- at org.springframework.boot.web.servlet.context.WebServerStartStopLifecycle.start(WebServerStartStopLifecycle.java:46)
- at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:178)
- at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54)
- at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356)
- at java.lang.Iterable.forEach(Iterable.java:75)
- at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:155)
- at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:123)
- at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:935)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586)
- at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:782)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:774)
- at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:439)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:339)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1340)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1329)
- at com.bonus.hnrn.rnbmw.HnRealNameBmwApplication.main(HnRealNameBmwApplication.java:21)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
-Caused by: com.alibaba.nacos.api.exception.NacosException: Client not connected,current status:STARTING
- at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:655)
- at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:635)
- at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:269)
- ... 39 common frames omitted
-2025-11-28 13:09:31,048 [restartedMain] ERROR c.a.c.n.r.NacosServiceRegistry -[NacosServiceRegistry.java:66]- nacos registry, bonus-realname register failed...NacosRegistration{nacosDiscoveryProperties=NacosDiscoveryProperties{serverAddr='192.168.0.14:18848', endpoint='', namespace='e0337b55-080d-456e-8449-46d68dceee5b', watchDelay=30000, logName='', service='bonus-realname', weight=1.0, clusterName='DEFAULT', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='192.168.0.38', networkInterface='', port=19118, secure=false, accessKey='', secretKey=''}},
-com.alibaba.nacos.api.exception.NacosException: Request nacos server failed:
- at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:279)
- at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.doRegisterService(NamingGrpcClientProxy.java:129)
- at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.registerService(NamingGrpcClientProxy.java:115)
- at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.registerService(NamingClientProxyDelegate.java:95)
- at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:145)
- at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:139)
- at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.register(NacosServiceRegistry.java:61)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.register(AbstractAutoServiceRegistration.java:232)
- at com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration.register(NacosAutoServiceRegistration.java:74)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.start(AbstractAutoServiceRegistration.java:133)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.bind(AbstractAutoServiceRegistration.java:98)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:86)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:47)
- at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
- at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
- at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
- at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421)
- at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378)
- at org.springframework.boot.web.servlet.context.WebServerStartStopLifecycle.start(WebServerStartStopLifecycle.java:46)
- at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:178)
- at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54)
- at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356)
- at java.lang.Iterable.forEach(Iterable.java:75)
- at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:155)
- at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:123)
- at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:935)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586)
- at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:782)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:774)
- at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:439)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:339)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1340)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1329)
- at com.bonus.hnrn.rnbmw.HnRealNameBmwApplication.main(HnRealNameBmwApplication.java:21)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
-Caused by: com.alibaba.nacos.api.exception.NacosException: Client not connected,current status:STARTING
- at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:655)
- at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:635)
- at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:269)
- ... 39 common frames omitted
-2025-11-28 13:10:16,099 [restartedMain] ERROR c.a.c.n.r.NacosServiceRegistry -[NacosServiceRegistry.java:66]- nacos registry, bonus-realname register failed...NacosRegistration{nacosDiscoveryProperties=NacosDiscoveryProperties{serverAddr='192.168.0.14:18848', endpoint='', namespace='e0337b55-080d-456e-8449-46d68dceee5b', watchDelay=30000, logName='', service='bonus-realname', weight=1.0, clusterName='DEFAULT', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='192.168.0.38', networkInterface='', port=19118, secure=false, accessKey='', secretKey=''}},
-com.alibaba.nacos.api.exception.NacosException: Request nacos server failed:
- at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:279)
- at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.doRegisterService(NamingGrpcClientProxy.java:129)
- at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.registerService(NamingGrpcClientProxy.java:115)
- at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.registerService(NamingClientProxyDelegate.java:95)
- at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:145)
- at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:139)
- at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.register(NacosServiceRegistry.java:61)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.register(AbstractAutoServiceRegistration.java:232)
- at com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration.register(NacosAutoServiceRegistration.java:74)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.start(AbstractAutoServiceRegistration.java:133)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.bind(AbstractAutoServiceRegistration.java:98)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:86)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:47)
- at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
- at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
- at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
- at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421)
- at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378)
- at org.springframework.boot.web.servlet.context.WebServerStartStopLifecycle.start(WebServerStartStopLifecycle.java:46)
- at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:178)
- at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54)
- at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356)
- at java.lang.Iterable.forEach(Iterable.java:75)
- at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:155)
- at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:123)
- at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:935)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586)
- at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:782)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:774)
- at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:439)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:339)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1340)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1329)
- at com.bonus.hnrn.rnbmw.HnRealNameBmwApplication.main(HnRealNameBmwApplication.java:21)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
-Caused by: com.alibaba.nacos.api.exception.NacosException: Client not connected,current status:STARTING
- at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:655)
- at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:635)
- at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:269)
- ... 39 common frames omitted
-2025-11-28 13:11:10,937 [SpringContextShutdownHook] ERROR c.a.c.n.r.NacosServiceRegistry -[NacosServiceRegistry.java:89]- ERR_NACOS_DEREGISTER, de-register failed...NacosRegistration{nacosDiscoveryProperties=NacosDiscoveryProperties{serverAddr='192.168.0.14:18848', endpoint='', namespace='e0337b55-080d-456e-8449-46d68dceee5b', watchDelay=30000, logName='', service='bonus-realname', weight=1.0, clusterName='DEFAULT', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='192.168.0.38', networkInterface='', port=19118, secure=false, accessKey='', secretKey=''}},
-com.alibaba.nacos.api.exception.NacosException: Request nacos server failed:
- at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:279)
- at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.doDeregisterService(NamingGrpcClientProxy.java:153)
- at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.deregisterService(NamingGrpcClientProxy.java:139)
- at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.deregisterService(NamingClientProxyDelegate.java:100)
- at com.alibaba.nacos.client.naming.NacosNamingService.deregisterInstance(NacosNamingService.java:180)
- at com.alibaba.nacos.client.naming.NacosNamingService.deregisterInstance(NacosNamingService.java:170)
- at com.alibaba.nacos.client.naming.NacosNamingService.deregisterInstance(NacosNamingService.java:160)
- at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.deregister(NacosServiceRegistry.java:85)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.deregister(AbstractAutoServiceRegistration.java:249)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.stop(AbstractAutoServiceRegistration.java:264)
- at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.destroy(AbstractAutoServiceRegistration.java:201)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389)
- at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeDestroyMethods(InitDestroyAnnotationBeanPostProcessor.java:347)
- at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeDestruction(InitDestroyAnnotationBeanPostProcessor.java:177)
- at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:184)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:587)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:559)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1152)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:520)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1145)
- at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1106)
- at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1075)
- at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.doClose(ServletWebServerApplicationContext.java:171)
- at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:991)
-Caused by: com.alibaba.nacos.api.exception.NacosException: Client not connected,current status:STARTING
- at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:655)
- at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:635)
- at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:269)
- ... 27 common frames omitted
-2025-11-28 13:34:05,945 [restartedMain] ERROR c.a.c.nacos.NacosConfigProperties -[NacosConfigProperties.java:350]- create config service error!properties=NacosConfigProperties{serverAddr='null', encode='null', group='DEFAULT_GROUP', prefix='null', fileExtension='properties', timeout=3000, endpoint='null', namespace='null', accessKey='null', secretKey='null', contextPath='null', clusterName='null', name='null', sharedDataids='null', refreshableDataids='null', extConfig=null},e=,
-com.alibaba.nacos.api.exception.NacosException: java.lang.reflect.InvocationTargetException
- at com.alibaba.nacos.api.config.ConfigFactory.createConfigService(ConfigFactory.java:45)
- at com.alibaba.nacos.api.NacosFactory.createConfigService(NacosFactory.java:43)
- at com.alibaba.cloud.nacos.NacosConfigProperties.configServiceInstance(NacosConfigProperties.java:346)
- at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.locate(NacosPropertySourceLocator.java:63)
- at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:97)
- at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:649)
- at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:373)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:314)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
- at com.bonus.hnrn.rnbmw.HnRealNameBmwApplication.main(HnRealNameBmwApplication.java:21)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
-Caused by: java.lang.reflect.InvocationTargetException: null
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
- at com.alibaba.nacos.api.config.ConfigFactory.createConfigService(ConfigFactory.java:42)
- ... 15 common frames omitted
-Caused by: com.alibaba.nacos.api.exception.NacosException: endpoint is blank
- at com.alibaba.nacos.client.config.impl.ServerListManager.(ServerListManager.java:154)
- at com.alibaba.nacos.client.config.http.ServerHttpAgent.(ServerHttpAgent.java:244)
- at com.alibaba.nacos.client.config.NacosConfigService.(NacosConfigService.java:83)
- ... 20 common frames omitted
-2025-11-28 13:34:18,787 [restartedMain] ERROR c.a.c.nacos.NacosConfigProperties -[NacosConfigProperties.java:350]- create config service error!properties=NacosConfigProperties{serverAddr='null', encode='null', group='DEFAULT_GROUP', prefix='null', fileExtension='properties', timeout=3000, endpoint='null', namespace='null', accessKey='null', secretKey='null', contextPath='null', clusterName='null', name='null', sharedDataids='null', refreshableDataids='null', extConfig=null},e=,
-com.alibaba.nacos.api.exception.NacosException: java.lang.reflect.InvocationTargetException
- at com.alibaba.nacos.api.config.ConfigFactory.createConfigService(ConfigFactory.java:45)
- at com.alibaba.nacos.api.NacosFactory.createConfigService(NacosFactory.java:43)
- at com.alibaba.cloud.nacos.NacosConfigProperties.configServiceInstance(NacosConfigProperties.java:346)
- at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.locate(NacosPropertySourceLocator.java:63)
- at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:97)
- at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:649)
- at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:373)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:314)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
- at com.bonus.hnrn.rnbmw.HnRealNameBmwApplication.main(HnRealNameBmwApplication.java:21)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
-Caused by: java.lang.reflect.InvocationTargetException: null
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
- at com.alibaba.nacos.api.config.ConfigFactory.createConfigService(ConfigFactory.java:42)
- ... 15 common frames omitted
-Caused by: com.alibaba.nacos.api.exception.NacosException: endpoint is blank
- at com.alibaba.nacos.client.config.impl.ServerListManager.(ServerListManager.java:154)
- at com.alibaba.nacos.client.config.http.ServerHttpAgent.(ServerHttpAgent.java:244)
- at com.alibaba.nacos.client.config.NacosConfigService.(NacosConfigService.java:83)
- ... 20 common frames omitted
diff --git a/logs/sys-back.log.error.2025-12-02.0 b/logs/sys-back.log.error.2025-12-02.0
deleted file mode 100644
index 6b3238b..0000000
--- a/logs/sys-back.log.error.2025-12-02.0
+++ /dev/null
@@ -1,129 +0,0 @@
-2025-12-02 17:21:47,046 [main] ERROR o.s.b.w.e.tomcat.TomcatStarter -[TomcatStarter.java:61]- Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'tokenFilter': Unsatisfied dependency expressed through field 'userDetailsService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'passwordEncoder'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.security.crypto.password.PasswordEncoder' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
-2025-12-02 17:21:47,121 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -[LoggingFailureAnalysisReporter.java:40]-
-
-***************************
-APPLICATION FAILED TO START
-***************************
-
-Description:
-
-Field passwordEncoder in com.bonus.hnrn.rnmw.core.service.UserServiceImp required a bean of type 'org.springframework.security.crypto.password.PasswordEncoder' that could not be found.
-
-The injection point has the following annotations:
- - @org.springframework.beans.factory.annotation.Autowired(required=true)
-
-
-Action:
-
-Consider defining a bean of type 'org.springframework.security.crypto.password.PasswordEncoder' in your configuration.
-
-2025-12-02 17:21:49,808 [main] ERROR o.s.b.w.e.tomcat.TomcatStarter -[TomcatStarter.java:61]- Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'tokenFilter': Unsatisfied dependency expressed through field 'userDetailsService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'passwordEncoder'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.security.crypto.password.PasswordEncoder' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
-2025-12-02 17:21:49,874 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -[LoggingFailureAnalysisReporter.java:40]-
-
-***************************
-APPLICATION FAILED TO START
-***************************
-
-Description:
-
-Field passwordEncoder in com.bonus.hnrn.rnmw.core.service.UserServiceImp required a bean of type 'org.springframework.security.crypto.password.PasswordEncoder' that could not be found.
-
-The injection point has the following annotations:
- - @org.springframework.beans.factory.annotation.Autowired(required=true)
-
-
-Action:
-
-Consider defining a bean of type 'org.springframework.security.crypto.password.PasswordEncoder' in your configuration.
-
-2025-12-02 17:23:11,438 [main] ERROR o.s.b.w.e.tomcat.TomcatStarter -[TomcatStarter.java:61]- Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'tokenFilter': Unsatisfied dependency expressed through field 'userDetailsService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'passwordEncoder'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.security.crypto.password.PasswordEncoder' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
-2025-12-02 17:23:11,476 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -[LoggingFailureAnalysisReporter.java:40]-
-
-***************************
-APPLICATION FAILED TO START
-***************************
-
-Description:
-
-Field passwordEncoder in com.bonus.hnrn.rnmw.core.service.UserServiceImp required a bean of type 'org.springframework.security.crypto.password.PasswordEncoder' that could not be found.
-
-The injection point has the following annotations:
- - @org.springframework.beans.factory.annotation.Autowired(required=true)
-
-
-Action:
-
-Consider defining a bean of type 'org.springframework.security.crypto.password.PasswordEncoder' in your configuration.
-
-2025-12-02 17:23:45,655 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -[LoggingFailureAnalysisReporter.java:40]-
-
-***************************
-APPLICATION FAILED TO START
-***************************
-
-Description:
-
-Field passwordEncoder in com.bonus.hnrn.rnmw.person.service.CompanyServiceImp required a bean of type 'org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder' that could not be found.
-
-The injection point has the following annotations:
- - @org.springframework.beans.factory.annotation.Autowired(required=true)
-
-
-Action:
-
-Consider defining a bean of type 'org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder' in your configuration.
-
-2025-12-02 17:23:49,382 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -[LoggingFailureAnalysisReporter.java:40]-
-
-***************************
-APPLICATION FAILED TO START
-***************************
-
-Description:
-
-Field passwordEncoder in com.bonus.hnrn.rnmw.person.service.CompanyServiceImp required a bean of type 'org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder' that could not be found.
-
-The injection point has the following annotations:
- - @org.springframework.beans.factory.annotation.Autowired(required=true)
-
-
-Action:
-
-Consider defining a bean of type 'org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder' in your configuration.
-
-2025-12-02 17:24:48,370 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -[LoggingFailureAnalysisReporter.java:40]-
-
-***************************
-APPLICATION FAILED TO START
-***************************
-
-Description:
-
-Field passwordEncoder in com.bonus.hnrn.rnmw.person.service.CompanyServiceImp required a bean of type 'org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder' that could not be found.
-
-The injection point has the following annotations:
- - @org.springframework.beans.factory.annotation.Autowired(required=true)
-
-
-Action:
-
-Consider defining a bean of type 'org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder' in your configuration.
-
-2025-12-02 17:26:15,473 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -[LoggingFailureAnalysisReporter.java:40]-
-
-***************************
-APPLICATION FAILED TO START
-***************************
-
-Description:
-
-Field passwordEncoder in com.bonus.hnrn.rnmw.person.service.CompanyServiceImp required a bean of type 'org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder' that could not be found.
-
-The injection point has the following annotations:
- - @org.springframework.beans.factory.annotation.Autowired(required=true)
-
-
-Action:
-
-Consider defining a bean of type 'org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder' in your configuration.
-
diff --git a/logs/sys-back.log.sql b/logs/sys-back.log.sql
deleted file mode 100644
index 9dd97bf..0000000
--- a/logs/sys-back.log.sql
+++ /dev/null
@@ -1,33 +0,0 @@
-2025-11-28 11:22:55,392 [restartedMain] Starting HnRealNameBmwApplication using Java 1.8.0_401 on 黑子 with PID 53948 (F:\workspace\idea\hn_cloud_service\HnRealNameBmw\target\classes started by 黑子 in F:\workspace\idea\hn_cloud_service)
-2025-11-28 11:22:55,393 [restartedMain] No active profile set, falling back to default profiles: default
-2025-11-28 11:23:07,896 [restartedMain] SecurityFilter initialized
-2025-11-28 11:23:16,007 [restartedMain] Started HnRealNameBmwApplication in 21.529 seconds (JVM running for 22.571)
-2025-11-28 11:23:16,009 [taskExecutor-1] --------自有人员合同临时状态扫描器启动------
-2025-11-28 11:23:40,227 [SpringContextShutdownHook] SecurityFilter destroyed
-2025-11-28 13:07:36,869 [restartedMain] Starting HnRealNameBmwApplication using Java 1.8.0_401 on 黑子 with PID 43116 (F:\workspace\idea\hn_cloud_service\HnRealNameBmw\target\classes started by 黑子 in F:\workspace\idea\hn_cloud_service)
-2025-11-28 13:07:36,870 [restartedMain] No active profile set, falling back to default profiles: default
-2025-11-28 13:07:50,001 [restartedMain] SecurityFilter initialized
-2025-11-28 13:08:03,163 [restartedMain] Started HnRealNameBmwApplication in 27.392 seconds (JVM running for 28.921)
-2025-11-28 13:08:03,165 [taskExecutor-1] --------自有人员合同临时状态扫描器启动------
-2025-11-28 13:09:07,550 [restartedMain] Starting HnRealNameBmwApplication using Java 1.8.0_401 on 黑子 with PID 46528 (F:\workspace\idea\hn_cloud_service\HnRealNameBmw\target\classes started by 黑子 in F:\workspace\idea\hn_cloud_service)
-2025-11-28 13:09:07,552 [restartedMain] No active profile set, falling back to default profiles: default
-2025-11-28 13:09:19,508 [restartedMain] SecurityFilter initialized
-2025-11-28 13:09:32,604 [restartedMain] Started HnRealNameBmwApplication in 25.956 seconds (JVM running for 27.143)
-2025-11-28 13:09:32,605 [taskExecutor-1] --------自有人员合同临时状态扫描器启动------
-2025-11-28 13:09:52,636 [restartedMain] Starting HnRealNameBmwApplication using Java 1.8.0_401 on 黑子 with PID 51464 (F:\workspace\idea\hn_cloud_service\HnRealNameBmw\target\classes started by 黑子 in F:\workspace\idea\hn_cloud_service)
-2025-11-28 13:09:52,637 [restartedMain] No active profile set, falling back to default profiles: default
-2025-11-28 13:10:04,844 [restartedMain] SecurityFilter initialized
-2025-11-28 13:10:17,619 [restartedMain] Started HnRealNameBmwApplication in 26.489 seconds (JVM running for 29.265)
-2025-11-28 13:10:17,622 [taskExecutor-1] --------自有人员合同临时状态扫描器启动------
-2025-11-28 13:11:10,587 [SpringContextShutdownHook] SecurityFilter destroyed
-2025-11-28 13:29:52,281 [restartedMain] No active profile set, falling back to default profiles: default
-2025-11-28 13:29:56,260 [restartedMain] SecurityFilter initialized
-2025-11-28 13:30:09,948 [taskExecutor-1] --------自有人员合同临时状态扫描器启动------
-2025-11-28 13:30:10,054 [restartedMain] Started HnRealNameBmwApplication in 19.876 seconds (JVM running for 21.56)
-2025-11-28 13:34:05,948 [restartedMain] No active profile set, falling back to default profiles: default
-2025-11-28 13:34:09,956 [restartedMain] SecurityFilter initialized
-2025-11-28 13:34:18,789 [restartedMain] No active profile set, falling back to default profiles: default
-2025-11-28 13:34:22,069 [restartedMain] SecurityFilter initialized
-2025-11-28 13:34:35,050 [taskExecutor-1] --------自有人员合同临时状态扫描器启动------
-2025-11-28 13:34:35,147 [restartedMain] Started HnRealNameBmwApplication in 17.947 seconds (JVM running for 19.103)
-2025-11-28 13:53:08,117 [Thread-17] SecurityFilter destroyed