When I configure a local tomcat server configuration in intellij, the following dialog is shown. You configure the start script and port numbers. Why does intellij require a port number if the tomcat's server.xml has port numbers specified? I know intellij reads the server config because it is picking up my certs file location.

Application's like eclipse and Intellij starts its own instance of tomcat. If you have your installed tomcat running in port 8080 you can tell these ide's to start another instance of tomcat in some other port no. Hope this helps..
In the application.properties file, Add server.port=8085(or any custom port of your choice). server.port property is a predefined spring property.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With