[英]Pictures in an html website of a spring Boot project arent shown on localhost:8080
I have a spring Boot project in eclipse on macos, when i run this project (as a spring Boot Application), and in my webrowser(firefox, edge and safari) i see all the Elements of this page, but not the picture i inserted in this page, so what is the problem?? I have a spring Boot project in eclipse on macos, when i run this project (as a spring Boot Application), and in my webrowser(firefox, edge and safari) i see all the Elements of this page, but not the picture i inserted在这个页面中,有什么问题?
@Configuration public class DefaultView extends WebMvcConfigurerAdapter{ @Configuration public class DefaultView 扩展 WebMvcConfigurerAdapter{
@Override
public void addViewControllers( ViewControllerRegistry registry ) {
registry.addViewController( "/" ).setViewName( "forward:/yourpage.html" );
registry.setOrder( Ordered.HIGHEST_PRECEDENCE );
super.addViewControllers( registry );
}
} }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.