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:
44 mariadb :
55 image : mariadb:10.6.1
66 network_mode : host
7+ restart : always
78 ports :
89 - 3306:3306
910 environment :
Original file line number Diff line number Diff line change 99import org .springframework .web .servlet .config .annotation .ResourceHandlerRegistry ;
1010import org .springframework .web .servlet .config .annotation .WebMvcConfigurer ;
1111
12- @ EnableWebMvc
1312@ Configuration
1413public class SpringWebConfiguration implements WebMvcConfigurer {
1514
@@ -26,17 +25,6 @@ public BCryptPasswordEncoder passwordEncoder() {
2625 return new BCryptPasswordEncoder ();
2726 }
2827
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-
4028 @ Bean
4129 public SecurityEvaluationContextExtension securityEvaluationContextExtension () {
4230 return new SecurityEvaluationContextExtension ();
You can’t perform that action at this time.
0 commit comments