File tree 4 files changed +12
-2
lines changed
springmvc-ViewResolver-ResourceBundle
src/main/java/jbr/springmvc
4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 12
12
<attribute name =" gradle_used_by_scope" value =" test" />
13
13
</attributes >
14
14
</classpathentry >
15
- <classpathentry kind =" src" path =" src/main/resources" />
15
+ <classpathentry kind =" src" output =" bin/main" path =" src/main/resources" >
16
+ <attributes >
17
+ <attribute name =" gradle_scope" value =" main" />
18
+ <attribute name =" gradle_used_by_scope" value =" main,test" />
19
+ </attributes >
20
+ </classpathentry >
16
21
<classpathentry kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/" />
17
22
<classpathentry kind =" con" path =" org.eclipse.jst.j2ee.internal.web.container" />
18
23
<classpathentry kind =" con" path =" org.eclipse.buildship.core.gradleclasspathcontainer" >
Original file line number Diff line number Diff line change 4
4
5
5
<property name =" context-root" value =" springmvc-ViewResolver-ResourceBundleViewResolver" />
6
6
7
+ <wb-resource deploy-path =" /WEB-INF/classes" source-path =" src/main/resources" />
8
+
7
9
<wb-resource deploy-path =" /WEB-INF/classes" source-path =" src/main/java" />
10
+
11
+ <wb-resource deploy-path =" /" source-path =" src/main/webapp" />
8
12
<wb-resource deploy-path =" /WEB-INF/classes" source-path =" /src/main/resources" />
9
13
10
14
</wb-module >
Original file line number Diff line number Diff line change 12
12
13
13
@ Configuration
14
14
@ EnableWebMvc
15
- @ ComponentScan (basePackages = { "jbr.spring5mvc " })
15
+ @ ComponentScan (basePackages = { "jbr.springmvc " })
16
16
public class AppConfig implements WebMvcConfigurer {
17
17
18
18
@ Bean
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ public class HomeController {
9
9
10
10
@ GetMapping ("user" )
11
11
public String user (Model model ) {
12
+ System .out .println ("user method" );
12
13
model .addAttribute ("message" , "User Page" );
13
14
14
15
return "user" ;
You can’t perform that action at this time.
0 commit comments