This repository was archived by the owner on Jan 31, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +8
-17
lines changed
java/com/hantsylabs/restexample/springmvc Expand file tree Collapse file tree 5 files changed +8
-17
lines changed Original file line number Diff line number Diff line change 14
14
<parent >
15
15
<groupId >org.springframework.boot</groupId >
16
16
<artifactId >spring-boot-starter-parent</artifactId >
17
- <version >1.5.4 .RELEASE</version >
17
+ <version >1.5.6 .RELEASE</version >
18
18
</parent >
19
19
20
20
<properties >
Original file line number Diff line number Diff line change 1
1
package com .hantsylabs .restexample .springmvc ;
2
2
3
- import org .springframework .boot .autoconfigure .SpringBootApplication ;
4
3
import org .springframework .boot .SpringApplication ;
4
+ import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
5
import org .springframework .context .annotation .Bean ;
6
6
import org .springframework .security .crypto .bcrypt .BCryptPasswordEncoder ;
7
- import org .springframework .web .servlet .config .annotation .ResourceHandlerRegistry ;
8
- import org .springframework .web .servlet .config .annotation .ViewControllerRegistry ;
9
7
import org .springframework .web .servlet .config .annotation .WebMvcConfigurerAdapter ;
10
8
11
9
@ SpringBootApplication
12
10
public class Application extends WebMvcConfigurerAdapter {
13
11
14
- @ Override
15
- public void addResourceHandlers (ResourceHandlerRegistry registry ) {
16
- registry .addResourceHandler ("/**" ).addResourceLocations ("file:/static/" );
17
- }
18
-
19
- @ Override
20
- public void addViewControllers (ViewControllerRegistry registry ) {
21
- registry .addViewController ("/" ).setViewName ("redirect:/index.html" );
22
- }
23
-
24
12
public static void main (String [] args ) {
25
13
SpringApplication .run (Application .class , args );
26
14
}
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ spring:
37
37
38
38
messages :
39
39
basename : messages
40
-
40
+ resources :
41
+ static-locations : classpath:/static/, file:/static/
41
42
logging :
42
43
file : app.log
43
44
level :
Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ spring:
44
44
check-template-location : false
45
45
messages :
46
46
basename : messages
47
-
47
+ resources :
48
+ static-locations : classpath:/static/, file:/static/
48
49
logging.level :
49
50
org.springframework.web : DEBUG
50
51
com.verygood.payments.processing.http : DEBUG
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ spring:
41
41
42
42
messages :
43
43
basename : messages
44
-
44
+ resources :
45
+ static-locations : classpath:/static/, file:/static/
45
46
logging.level :
46
47
org.springframework.web : INFO
47
48
com.hantsylabs.restexample.springmvc : DEBUG
You can’t perform that action at this time.
0 commit comments