【问题标题】:Spring Boot - can not include static resourceSpring Boot - 不能包含静态资源
【发布时间】:2018-04-24 15:58:00
【问题描述】:

目录结构

我尝试在 profile.html 中包含 css

<link th:href="@{css/profile.css}" rel="stylesheet" />

但这不起作用

我的应用类

@SpringBootApplication
class Application

fun main(args: Array<String>) {
    SpringApplication.run(Application::class.java, *args)
}

附:对不起我的英语

【问题讨论】:

标签: css spring spring-boot kotlin


【解决方案1】:

如果您尝试从带有 jsp 页面的静态内容开始,这是一个很好的示例。

希望对你有帮助

spring-boot-hello-world-example-jsp

【讨论】:

    猜你喜欢
    • 2016-10-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-29
    • 1970-01-01
    • 1970-01-01
    • 2022-12-04
    • 2014-04-03
    • 1970-01-01
    相关资源
    最近更新 更多