Skip to content

Commit

Permalink
sc admin
Browse files Browse the repository at this point in the history
  • Loading branch information
forezp committed Jan 3, 2019
1 parent a35c141 commit b28f054
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
5 changes: 1 addition & 4 deletions sc-f-boot-admin-cloud/admin-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-core</artifactId>
</dependency>



</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]

8 changes: 4 additions & 4 deletions sc-f-boot-admin/admin-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

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 {
Expand All @@ -14,13 +14,13 @@ public static void main(String[] args) {
}


@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();
// }
// }
}

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ spring:
name: admin-server
server:
port: 8769
#eureka:
# client:
# serviceUrl:
# defaultZone: http://localhost:8761/eureka/

0 comments on commit b28f054

Please sign in to comment.