springboot集成cxf发布we
bservice后静态资源无法访问,在这之前是没有问题的
静态资源被拦截,需写个类 将静态资源的访问权限打开
@SuppressWarnings("deprecation")
@Configuration
public class MyWebAppConfigurer extends WebMvcConfigurerAdapter{
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/web/**").addResourceLocations("classpath:/web/");
super.addResourceHandlers(registry);
}
}