简体   繁体   中英

IntelliJ Tomcat serves wrong webapp

I'm using IntelliJ Ultimate to develop a SpringBoot App (+ maven). When i hit run, tomcat still serves a old vaadin project. How can i remove it? I already cleared my browsers cache, tried to load the side in a private browser window and removed the project from the tomcats webapp folder

I think you should try these things:

  1. Change the port number in the application.properties file.

    server.port = [port number]

在此处输入图像描述

  1. Edit the project's configuration and explicitly add the @SpringBootApplication containing class or just go to the file and run the main() method.

在此处输入图像描述

Few things can be checked.

  1. If you are using your local tomcat then verify the tomcat if that is the one you are actually using. Better remove the tomcat and import a fresh one.

or

  1. close the project from IntelliJ and reimport.
  2. clean build maven project and run again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM