0
Spring引導配置。未提供靜態內容的彈簧引導返回404未找到
@SpringBootApplication
public class Application extends SpringBootServletInitializer {
public static void main(String[] args) {
ApplicationContext ctx = SpringApplication.run(Application.class, args);
}
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(Application.class);
}
...
}
我在哪裏放置必要的靜態內容
和訪問它通過我的JSP
<link href="./resources/css/bootstrap.min.css" rel="stylesheet">
它返回一個404沒有找到。我錯過了什麼?