美文网首页
Springboot+thymeleaf打包成jar 访问不到页

Springboot+thymeleaf打包成jar 访问不到页

作者: raysonfang | 来源:发表于2018-07-03 14:50 被阅读946次

    一, 亲测有效

    spring-boot-maven-plugin 1.5.6 新版打包后 访问404错误

    解决 用1.4.2 版本

    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <version>1.4.2.RELEASE</version>
    <configuration>
    <mainClass>com.geoswift.quartz.QuartzApplication</mainClass>
    </configuration>

    此问题坑我几个小时,没时间研究 不知道具体什么原因。

    国外牛人发现问题提出解决方案

    https://stackoverflow.com/questions/44689773/why-spring-boot-1-5-3-jar-does-not-recognise-jsp-files-in-src-main-resources-met

    相关文章

      网友评论

          本文标题:Springboot+thymeleaf打包成jar 访问不到页

          本文链接:https://www.haomeiwen.com/subject/wnaduftx.html