diff --git a/README.md b/README.md index 1ff40019..454ee2c5 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ ## 1. 项目介绍 * **技术交流群** [250883130](http://shang.qq.com/wpa/qunwpa?idkey=17544199255998bda0d938fb72b08d076c40c52c9904520b76eb5eb0585da71e) -* **详细在线文档** [点击查看](https://www.kancloud.cn/zlt2000/microservices-platform/919413) +* **详细在线文档** [点击查看](https://www.kancloud.cn/zlt2000/microservices-platform/936236) * 演示地址 * url: [http://120.78.94.191:8066](http://120.78.94.191:8066) * 账号密码:admin/admin @@ -73,7 +73,7 @@ central-platform -- 父项目,公共依赖 │ ├─zlt-business -- 业务模块一级工程 │ │ ├─user-center -- 用户中心[7000] │ │ ├─file-center -- 文件中心[5000] -│ │ ├─generator-center -- 代码生成器[7300] +│ │ ├─code-generator -- 代码生成器[7300] │ │─zlt-commons -- 通用工具一级工程 │ │ ├─zlt-auth-client-spring-boot-starter -- 封装spring security client端的通用操作逻辑 │ │ ├─zlt-common-spring-boot-starter -- 封装通用操作逻辑 diff --git a/zlt-commons/zlt-auth-client-spring-boot-starter/pom.xml b/zlt-commons/zlt-auth-client-spring-boot-starter/pom.xml index d9921d2d..c2eb1ce6 100644 --- a/zlt-commons/zlt-auth-client-spring-boot-starter/pom.xml +++ b/zlt-commons/zlt-auth-client-spring-boot-starter/pom.xml @@ -19,7 +19,6 @@ org.springframework.cloud spring-cloud-starter-oauth2 - true com.zlt diff --git a/zlt-gateway/zuul-gateway/pom.xml b/zlt-gateway/zuul-gateway/pom.xml index ed65ce05..4f8695c5 100644 --- a/zlt-gateway/zuul-gateway/pom.xml +++ b/zlt-gateway/zuul-gateway/pom.xml @@ -32,10 +32,6 @@ org.springframework.cloud spring-cloud-starter-alibaba-nacos-discovery - - org.springframework.cloud - spring-cloud-starter-oauth2 - org.springframework.boot spring-boot-starter-web diff --git a/zlt-register/nacos/bin/startup.sh b/zlt-register/nacos/bin/startup.sh index 612d0591..140aca91 100644 --- a/zlt-register/nacos/bin/startup.sh +++ b/zlt-register/nacos/bin/startup.sh @@ -24,7 +24,7 @@ error_exit () [ ! -e "$JAVA_HOME/bin/java" ] && JAVA_HOME=/opt/taobao/java [ ! -e "$JAVA_HOME/bin/java" ] && error_exit "Please set the JAVA_HOME variable in your environment, We need java(x64)! jdk8 or later is better!" -export MODE="standalone" +export MODE="cluster" while getopts ":m:" opt do case $opt in diff --git a/zlt-uaa/src/main/java/com/central/oauth/controller/OAuth2Controller.java b/zlt-uaa/src/main/java/com/central/oauth/controller/OAuth2Controller.java index c247f1fb..e9813002 100644 --- a/zlt-uaa/src/main/java/com/central/oauth/controller/OAuth2Controller.java +++ b/zlt-uaa/src/main/java/com/central/oauth/controller/OAuth2Controller.java @@ -33,7 +33,6 @@ import org.springframework.security.oauth2.provider.TokenRequest; import org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; diff --git a/zlt-uaa/src/main/java/com/central/oauth/mobile/MobileAuthenticationProvider.java b/zlt-uaa/src/main/java/com/central/oauth/mobile/MobileAuthenticationProvider.java index 328ee11b..5e2a7926 100644 --- a/zlt-uaa/src/main/java/com/central/oauth/mobile/MobileAuthenticationProvider.java +++ b/zlt-uaa/src/main/java/com/central/oauth/mobile/MobileAuthenticationProvider.java @@ -6,7 +6,6 @@ import org.springframework.security.authentication.AuthenticationProvider; import org.springframework.security.authentication.BadCredentialsException; import org.springframework.security.authentication.InternalAuthenticationServiceException; import org.springframework.security.core.Authentication; -import org.springframework.security.core.AuthenticationException; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.crypto.password.PasswordEncoder;