【Linux】Linux入门学习之常用命令五 |
您所在的位置:网站首页 › linux系统启用网卡命令 › 【Linux】Linux入门学习之常用命令五 |
【SpringBoot已解决】org.springframework.context.ApplicationContextException: Failed to start bean ‘docume
determine ZandR: 如果还是不能解决的话,可以去看看其他的博客,小编报这个错误就是因为没有配置这篇文章的代码 【SpringBoot已解决】org.springframework.context.ApplicationContextException: Failed to start bean ‘documedetermine ZandR: 因为现在电脑不在,这是我看其他小编的代码,你看看是否有这个配置类 【SpringBoot已解决】org.springframework.context.ApplicationContextException: Failed to start bean ‘documedetermine ZandR: import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport; /** * @author Andon * 2021/12/29 */ @Configuration public class WebMvcConfigurer extends WebMvcConfigurationSupport { /** * 发现如果继承了WebMvcConfigurationSupport,则在yml中配置的相关内容会失效。 需要重新指定静态资源 */ @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/**").addResourceLocations( "classpath:/static/"); registry.addResourceHandler("swagger-ui.html", "doc.html").addResourceLocations( "classpath:/META-INF/resources/"); registry.addResourceHandler("/webjars/**").addResourceLocations( "classpath:/META-INF/resources/webjars/"); super.addResourceHandlers(registry); } } 【SpringBoot已解决】org.springframework.context.ApplicationContextException: Failed to start bean ‘documeLaiDaoke2020: 2.6.11,谢。配置WebMvcConfigurer是用 @EnableSwagger2吗 【SpringBoot已解决】org.springframework.context.ApplicationContextException: Failed to start bean ‘documedetermine ZandR: 你的swagger有没有配置WebMvcConfigurer |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |