I have added a Bean in my AppConfig, and from now i'm getting all Rejected bean name 'xxxxxxxx': no URL paths identified when deploying the application...
I don't know what i did wrong, this is my AppConfig.class
@Configuration
@EnableWebMvc
@ComponentScan("it.beingsmart")
public class AppConfig extends WebMvcConfigurerAdapter{
@Bean
public ViewResolver viewResolver() {
InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
viewResolver.setViewClass(JstlView.class);
viewResolver.setPrefix("/WEB-INF/pages/");
viewResolver.setSuffix(".jsp");
return viewResolver;
}
@Bean
public MessageSource messageSource() {
ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();
messageSource.setBasename("messages");
return messageSource;
}
@Override
public void addResourceHandlers(final ResourceHandlerRegistry registry) {
registry.addResourceHandler("/resources/**").addResourceLocations("/resources/");
}
@Bean(name = "multipartResolver")
public StandardServletMultipartResolver resolver() {
return new StandardServletMultipartResolver();
}
@Bean
public SVGParser parser(){
return new SVGParser();
}
I added the SVGParser because I autowire it in a controller
@Autowired
SVGParser parser;
Did I miss something?
The message :
Rejected bean name 'xxxxxxxx': no URL paths identified when deploying the application...
Is a debug message, which is not problematic at all. See my other answer for more details:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.