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