File tree Expand file tree Collapse file tree 5 files changed +23
-23
lines changed
src/main/java/com/forezp/adminclient
admin-server/src/main/resources
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 34
34
<artifactId >spring-boot-starter-actuator</artifactId >
35
35
</dependency >
36
36
37
- <dependency >
38
- <groupId >org.jolokia</groupId >
39
- <artifactId >jolokia-core</artifactId >
40
- </dependency >
37
+
41
38
42
39
43
40
</dependencies >
Original file line number Diff line number Diff line change @@ -27,3 +27,10 @@ management:
27
27
endpoint :
28
28
health :
29
29
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 : 124746406@qq.com
36
+
Original file line number Diff line number Diff line change 23
23
<artifactId >spring-boot-admin-starter-client</artifactId >
24
24
<version >2.1.0</version >
25
25
</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> -- >
30
30
<dependency >
31
31
<groupId >org.springframework.boot</groupId >
32
32
<artifactId >spring-boot-starter-web</artifactId >
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .boot .SpringApplication ;
4
4
import 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;
8
8
9
9
@ SpringBootApplication
10
10
public class AdminClientApplication {
@@ -14,13 +14,13 @@ public static void main(String[] args) {
14
14
}
15
15
16
16
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
+ // }
25
25
}
26
26
Original file line number Diff line number Diff line change 3
3
name : admin-server
4
4
server :
5
5
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