here is my application.properties
management.server.port=8080
server.port=8414
and when i run my appliction, i can visit my jsp page on both 8080 & 8414
but the restcontroller can work only on 8414 like this,
here is the test code if you need https://github.com/xuchang-x/monitor-test
Comment From: xuchang-x
i think i can only visit jsp on 8414 for this config
Comment From: philwebb
The sample you've provided doesn't serve any JSPs on either port. You have JSP files in src/webapp
but you have jar
packaging so this folder is ignored.
When you hit localhost:8414/test
you see the response from your @RestController
. When you hit localhost:8080/test
you get a 404 as expected.