提交 c3aa93d3 编写于 作者: zlt2000's avatar zlt2000

优化代码

上级 06b83b82
......@@ -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 -- 封装通用操作逻辑
......
......@@ -19,7 +19,6 @@
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-oauth2</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
......
......@@ -32,10 +32,6 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-oauth2</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
......
......@@ -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
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册