File tree Expand file tree Collapse file tree
spring-mvc-no-xml/src/main/java/org/baeldung/servlet Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import org .baeldung .spring .ClientWebConfig ;
44import org .springframework .web .servlet .support .AbstractAnnotationConfigDispatcherServletInitializer ;
55
6+ /**
7+ * <b>Further reading</b>: <br/>
8+ * - http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/mvc.html#mvc-container-config <br/>
9+ * - http://geowarin.wordpress.com/2013/01/23/complete-example-of-a-spring-mvc-3-2-project/ <br/>
10+ * - http://www.objectpartners.com/2012/01/16/introduction-to-servlet-3-0/ <br/>
11+ */
612public class WebAppNew extends AbstractAnnotationConfigDispatcherServletInitializer {
713
814 public WebAppNew () {
Original file line number Diff line number Diff line change 1- package org .baeldung .spring . web . config ;
1+ package org .baeldung .config ;
22
33import org .springframework .context .annotation .ComponentScan ;
44import org .springframework .context .annotation .Configuration ;
55import org .springframework .web .servlet .config .annotation .EnableWebMvc ;
66
77@ EnableWebMvc
88@ Configuration
9- @ ComponentScan ({ "org.baeldung.spring.web. controller" })
9+ @ ComponentScan ({ "org.baeldung.controller" })
1010public class MvcConfig {
1111
1212 public MvcConfig () {
Original file line number Diff line number Diff line change 1- package org .baeldung .spring . web . controller ;
1+ package org .baeldung .controller ;
22
33import org .springframework .stereotype .Controller ;
44import org .springframework .web .bind .annotation .PathVariable ;
Original file line number Diff line number Diff line change 1- package org .baeldung .spring . web . controller ;
1+ package org .baeldung .controller ;
22
33import org .springframework .stereotype .Controller ;
44import org .springframework .web .bind .annotation .PathVariable ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1717 </context-param >
1818 <context-param >
1919 <param-name >contextConfigLocation</param-name >
20- <param-value >org.baeldung.spring.web. config</param-value >
20+ <param-value >org.baeldung.config</param-value >
2121 </context-param >
2222
2323 <listener >
You can’t perform that action at this time.
0 commit comments