idea中maven工程下启动报错

console中报的错误信息SpingBoot:Unregistering JMX-exposed beans on shutdown

开发环境 idea+maven整合jsp

之前都是使用的eclipse所以在使用idea时有很多不一样的地方,接下来是展现真正的技术了!!

``
//在pom.xml中添加tomcat依赖

<!-- tomcat 的支持.-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat-web</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.tomcat.embed</groupId>
            <artifactId>tomcat-embed-jasper</artifactId>
            <scope>provided</scope>
        </dependency>
    ```

添加完之后重启工程完美解决

猜你喜欢

转载自blog.csdn.net/Lucas_wei/article/details/83817857