springboot项目使用外置tomcat发布项目(注意事项)

    xiaoxiao2022-07-02  115

    boot踩过坑做下记录

    #项目发布使用使用外置tomcat 基础配置

    一.重写SpringBootServletInitializer配置属性

    二.移除内置tomcat 添加服务器配置 ,使用thymeleaf引擎(根据项目自行配置)

    @注意事项使用原生MVC配置 会导致资源访问不可用

    例:mvc/ Controller boot/RestController

    最新回复(0)