File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed
src/main/java/com/github/throyer/common/springboot/configurations Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ services:
4
4
mariadb :
5
5
image : mariadb:10.6.1
6
6
network_mode : host
7
+ restart : always
7
8
ports :
8
9
- 3306:3306
9
10
environment :
Original file line number Diff line number Diff line change 9
9
import org .springframework .web .servlet .config .annotation .ResourceHandlerRegistry ;
10
10
import org .springframework .web .servlet .config .annotation .WebMvcConfigurer ;
11
11
12
- @ EnableWebMvc
13
12
@ Configuration
14
13
public class SpringWebConfiguration implements WebMvcConfigurer {
15
14
@@ -26,17 +25,6 @@ public BCryptPasswordEncoder passwordEncoder() {
26
25
return new BCryptPasswordEncoder ();
27
26
}
28
27
29
- @ Override
30
- public void addResourceHandlers (ResourceHandlerRegistry registry ) {
31
- registry
32
- .addResourceHandler ("/**" )
33
- .addResourceLocations ("classpath:/static/" );
34
-
35
- registry
36
- .addResourceHandler ("/webjars/**" )
37
- .addResourceLocations ("/webjars/" );
38
- }
39
-
40
28
@ Bean
41
29
public SecurityEvaluationContextExtension securityEvaluationContextExtension () {
42
30
return new SecurityEvaluationContextExtension ();
You can’t perform that action at this time.
0 commit comments