File tree Expand file tree Collapse file tree 5 files changed +23
-23
lines changed
admin-server/src/main/resources
src/main/java/com/forezp/adminclient
admin-server/src/main/resources Expand file tree Collapse file tree 5 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 3434 <artifactId >spring-boot-starter-actuator</artifactId >
3535 </dependency >
3636
37- <dependency >
38- <groupId >org.jolokia</groupId >
39- <artifactId >jolokia-core</artifactId >
40- </dependency >
37+
4138
4239
4340 </dependencies >
Original file line number Diff line number Diff line change @@ -27,3 +27,10 @@ management:
2727 endpoint :
2828 health :
2929 show-details : ALWAYS
30+
31+
32+ spring.mail.host : smtp.163.com
33+ spring.mail.username : miles02
34+ spring.mail.password :
35+ spring.boot.admin.notify.mail.to :
[email protected] 36+
Original file line number Diff line number Diff line change 2323 <artifactId >spring-boot-admin-starter-client</artifactId >
2424 <version >2.1.0</version >
2525 </dependency >
26- <dependency >
27- <groupId >org.springframework.boot</groupId >
28- <artifactId >spring-boot-starter-security</artifactId >
29- </dependency >
26+ <!-- < dependency> -- >
27+ <!-- < groupId>org.springframework.boot</groupId> -- >
28+ <!-- < artifactId>spring-boot-starter-security</artifactId> -- >
29+ <!-- < /dependency> -- >
3030 <dependency >
3131 <groupId >org.springframework.boot</groupId >
3232 <artifactId >spring-boot-starter-web</artifactId >
Original file line number Diff line number Diff line change 22
33import org .springframework .boot .SpringApplication ;
44import org .springframework .boot .autoconfigure .SpringBootApplication ;
5- import org .springframework .context .annotation .Configuration ;
6- import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
7- import org .springframework .security .config .annotation .web .configuration .WebSecurityConfigurerAdapter ;
5+ // import org.springframework.context.annotation.Configuration;
6+ // import org.springframework.security.config.annotation.web.builders.HttpSecurity;
7+ // import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
88
99@ SpringBootApplication
1010public class AdminClientApplication {
@@ -14,13 +14,13 @@ public static void main(String[] args) {
1414 }
1515
1616
17- @ Configuration
18- public static class SecurityPermitAllConfig extends WebSecurityConfigurerAdapter {
19- @ Override
20- protected void configure (HttpSecurity http ) throws Exception {
21- http .authorizeRequests ().anyRequest ().permitAll ()
22- .and ().csrf ().disable ();
23- }
24- }
17+ // @Configuration
18+ // public static class SecurityPermitAllConfig extends WebSecurityConfigurerAdapter {
19+ // @Override
20+ // protected void configure(HttpSecurity http) throws Exception {
21+ // http.authorizeRequests().anyRequest().permitAll()
22+ // .and().csrf().disable();
23+ // }
24+ // }
2525}
2626
Original file line number Diff line number Diff line change 33 name : admin-server
44server :
55 port : 8769
6- # eureka:
7- # client:
8- # serviceUrl:
9- # defaultZone: http://localhost:8761/eureka/
You can’t perform that action at this time.
0 commit comments