在使用Intellij IDEA创建项目时 Tomcat会出现端口占用的情况,可以配置工程src-main-resources-application.properties文件
# ServerProperties
server.pot=8080
server.servlet.context-path=/community
在浏览器中输入http://localhost:8080/community/alpha/hello
在使用Intellij IDEA创建项目时 Tomcat会出现端口占用的情况,可以配置工程src-main-resources-application.properties文件
# ServerProperties
server.pot=8080
server.servlet.context-path=/community
在浏览器中输入http://localhost:8080/community/alpha/hello