⚡ 优化。 sso-client-demo 不在依赖 spring cloud 组件
This commit is contained in:
1 parent
9e7b190cd0
commit
8322ac6f87
2 files changed
+2
-6
No files matched your search
@@ -51,11 +51,6 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-undertow</artifactId>
|
||||
</dependency>
|
||||
<!--sentinel-->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
+2
-1
@@ -18,6 +18,7 @@
|
||||
package com.pig4cloud.pigx.sso;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso;
|
||||
import org.springframework.cloud.client.SpringCloudApplication;
|
||||
|
||||
@@ -30,7 +31,7 @@ import org.springframework.cloud.client.SpringCloudApplication;
|
||||
* 2. 再启动一个实例: http://localhost:4041/sso1/ 不需要登录即可获取当前用户信息
|
||||
*/
|
||||
@EnableOAuth2Sso
|
||||
@SpringCloudApplication
|
||||
@SpringBootApplication
|
||||
public class PigxSsoClientDemoApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
Reference in new issue
Block a user