优化代码

This commit is contained in:
zlt
2019-02-24 22:52:16 +08:00
parent 06b83b82ea
commit c3aa93d3cd
6 changed files with 3 additions and 10 deletions
+2 -2
View File
@@ -9,7 +9,7 @@
## 1. 项目介绍 ## 1. 项目介绍
* **技术交流群** [250883130](http://shang.qq.com/wpa/qunwpa?idkey=17544199255998bda0d938fb72b08d076c40c52c9904520b76eb5eb0585da71e) * **技术交流群** [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) * url: [http://120.78.94.191:8066](http://120.78.94.191:8066)
* 账号密码:admin/admin * 账号密码:admin/admin
@@ -73,7 +73,7 @@ central-platform -- 父项目,公共依赖
│ ├─zlt-business -- 业务模块一级工程 │ ├─zlt-business -- 业务模块一级工程
│ │ ├─user-center -- 用户中心[7000] │ │ ├─user-center -- 用户中心[7000]
│ │ ├─file-center -- 文件中心[5000] │ │ ├─file-center -- 文件中心[5000]
│ │ ├─generator-center -- 代码生成器[7300] │ │ ├─code-generator -- 代码生成器[7300]
│ │─zlt-commons -- 通用工具一级工程 │ │─zlt-commons -- 通用工具一级工程
│ │ ├─zlt-auth-client-spring-boot-starter -- 封装spring security client端的通用操作逻辑 │ │ ├─zlt-auth-client-spring-boot-starter -- 封装spring security client端的通用操作逻辑
│ │ ├─zlt-common-spring-boot-starter -- 封装通用操作逻辑 │ │ ├─zlt-common-spring-boot-starter -- 封装通用操作逻辑
@@ -19,7 +19,6 @@
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-oauth2</artifactId> <artifactId>spring-cloud-starter-oauth2</artifactId>
<optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.zlt</groupId> <groupId>com.zlt</groupId>
-4
View File
@@ -32,10 +32,6 @@
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-oauth2</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
+1 -1
View File
@@ -24,7 +24,7 @@ error_exit ()
[ ! -e "$JAVA_HOME/bin/java" ] && JAVA_HOME=/opt/taobao/java [ ! -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!" [ ! -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 while getopts ":m:" opt
do do
case $opt in case $opt in
@@ -33,7 +33,6 @@ import org.springframework.security.oauth2.provider.TokenRequest;
import org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices; import org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
@@ -6,7 +6,6 @@ import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.authentication.BadCredentialsException; import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.authentication.InternalAuthenticationServiceException; import org.springframework.security.authentication.InternalAuthenticationServiceException;
import org.springframework.security.core.Authentication; import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.security.crypto.password.PasswordEncoder;