Home > Net >  is it possible to use tomcat 10 for JEE and tomcat 9 for spring on one laptop?
is it possible to use tomcat 10 for JEE and tomcat 9 for spring on one laptop?

Time:10-11

is it possible to use tomcat 10 for JEE and tomcat 9 for spring on one laptop? if yes can you ask for instructions on how to do this

CodePudding user response:

Yes, it is possible. Just create two projects and connected to both with two different tomcat versions, you can even change the port of the server. But remember both will not run together if they have the same port.

CodePudding user response:

It is possible to run both server on one computer as long as they are running on different ports

For JEE application to change port you can click on server tab and double click on Apache version and change the port from there. You can see detailed information in the below link: https://www.codejava.net/servers/tomcat/how-to-change-port-numbers-for-tomcat-in-eclipse

And for spring you can edit application.properties file and set server.port=9090 or anything, this will change the port

By default for both port is 8080, so changing in one of them will make you running both server on a single laptop

  • Related