sc admin
This commit is contained in:
parent
a35c141af1
commit
b28f0544c8
@ -34,10 +34,7 @@
|
|||||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.jolokia</groupId>
|
|
||||||
<artifactId>jolokia-core</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -27,3 +27,10 @@ management:
|
|||||||
endpoint:
|
endpoint:
|
||||||
health:
|
health:
|
||||||
show-details: ALWAYS
|
show-details: ALWAYS
|
||||||
|
|
||||||
|
|
||||||
|
spring.mail.host: smtp.163.com
|
||||||
|
spring.mail.username: miles02
|
||||||
|
spring.mail.password:
|
||||||
|
spring.boot.admin.notify.mail.to: 124746406@qq.com
|
||||||
|
|
||||||
|
@ -23,10 +23,10 @@
|
|||||||
<artifactId>spring-boot-admin-starter-client</artifactId>
|
<artifactId>spring-boot-admin-starter-client</artifactId>
|
||||||
<version>2.1.0</version>
|
<version>2.1.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<!--<dependency>-->
|
||||||
<groupId>org.springframework.boot</groupId>
|
<!--<groupId>org.springframework.boot</groupId>-->
|
||||||
<artifactId>spring-boot-starter-security</artifactId>
|
<!--<artifactId>spring-boot-starter-security</artifactId>-->
|
||||||
</dependency>
|
<!--</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>
|
||||||
|
@ -2,9 +2,9 @@ package com.forezp.adminclient;
|
|||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.context.annotation.Configuration;
|
//import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
||||||
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
|
//import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
|
||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class AdminClientApplication {
|
public class AdminClientApplication {
|
||||||
@ -14,13 +14,13 @@ public class AdminClientApplication {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Configuration
|
// @Configuration
|
||||||
public static class SecurityPermitAllConfig extends WebSecurityConfigurerAdapter {
|
// public static class SecurityPermitAllConfig extends WebSecurityConfigurerAdapter {
|
||||||
@Override
|
// @Override
|
||||||
protected void configure(HttpSecurity http) throws Exception {
|
// protected void configure(HttpSecurity http) throws Exception {
|
||||||
http.authorizeRequests().anyRequest().permitAll()
|
// http.authorizeRequests().anyRequest().permitAll()
|
||||||
.and().csrf().disable();
|
// .and().csrf().disable();
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,7 +3,3 @@ spring:
|
|||||||
name: admin-server
|
name: admin-server
|
||||||
server:
|
server:
|
||||||
port: 8769
|
port: 8769
|
||||||
#eureka:
|
|
||||||
# client:
|
|
||||||
# serviceUrl:
|
|
||||||
# defaultZone: http://localhost:8761/eureka/
|
|
Loading…
Reference in New Issue
Block a user