Home > Blockchain >  IntelliJ Tomcat serves wrong webapp
IntelliJ Tomcat serves wrong webapp

Time:01-12

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

CodePudding user response:

I think you should try these things:

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

    server.port = [port number]

enter image description here

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

enter image description here

CodePudding user response:

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.
  •  Tags:  
  • Related