tag:blogger.com,1999:blog-19517292.post5024971817096249918..comments2024-03-19T04:05:21.564+01:00Comments on One Jar To Rule Them All: Tonari No To To Ro Totoro To To Ro Totoro, Kodomo No Toki Ni Dake Anata Ni Otozureru, Fushigina Deai (Tonari No Totoro - Ghibli Songs)Alexhttp://www.blogger.com/profile/11632964711752480304noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-19517292.post-54785531307045043942011-06-20T20:12:37.526+02:002011-06-20T20:12:37.526+02:00Thanks for the comment Ralph, it is also a nice po...Thanks for the comment Ralph, it is also a nice possibility, but because I wanted that Java files seems as much as possible to XML files.Alexhttps://www.blogger.com/profile/11632964711752480304noreply@blogger.comtag:blogger.com,1999:blog-19517292.post-82399156210170866012011-06-20T16:43:23.164+02:002011-06-20T16:43:23.164+02:00Instead of @Import({ControllerConfig.class}) you c...Instead of @Import({ControllerConfig.class}) you could use a component-scan annotation. Something like this works. This way you don't need the ControllerConfig class anymore.<br /><br />@Configuration<br />@EnableWebMvc<br />@ComponentScan(basePackages = "mytld.mycompany.myapp", useDefaultFilters = false, <br /> includeFilters = { @Filter(type = FilterType.ANNOTATION, value = Controller.class) })<br />public class ServletContextConfig extends WebMvcConfigurerAdapter {Ralphhttps://www.blogger.com/profile/02611508676965706503noreply@blogger.comtag:blogger.com,1999:blog-19517292.post-35451674639540965532011-06-20T11:48:46.569+02:002011-06-20T11:48:46.569+02:00All changes done. Thanks again Chris.All changes done. Thanks again Chris.Alexhttps://www.blogger.com/profile/11632964711752480304noreply@blogger.comtag:blogger.com,1999:blog-19517292.post-1763232229648585932011-06-20T11:18:51.638+02:002011-06-20T11:18:51.638+02:00Chris, Thank you very much for you comment. I have...Chris, Thank you very much for you comment. I have changed in post the names of classes, and soon I will change zip contents too.Alexhttps://www.blogger.com/profile/11632964711752480304noreply@blogger.comtag:blogger.com,1999:blog-19517292.post-957840081267357022011-06-20T09:46:23.946+02:002011-06-20T09:46:23.946+02:00Nice post, Alex! Just one suggestion: I would rec...Nice post, Alex! Just one suggestion: I would recommend naming your "Controller" @Configuration class "ControllerConfig" or something similar. This will help avoid confusion with Spring's own @Controller annotation, and it's probably a good idea in general to use a "Config" or "Configuration" suffix to clarify the purpose of @Configuration classes.Chris Beamshttps://www.blogger.com/profile/05966846907872095636noreply@blogger.com