安装、运行、预览省略
错误1:8080端口被IIS占用,关闭它
Description:
The Tomcat connector configured to listen on port 8080 failed to start. The port
may already be in use or the connector may be misconfigured.Action:
Verify the connector's configuration, identify and stop any process that's liste
ning on port 8080, or configure this application to listen on another port.
http://localhost:8080/d.do
HelloWorld.grovy
@RestController
class HelloWorld { @RequestMapping("/d.do") String hello() { "Hello JournalDev World." }}("/d.do")去掉d.do可以用http://localhost:8080访问;路径不对会报下列错误
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Sat Mar 10 15:57:04 CST 2018
There was an unexpected error (type=Not Found, status=404).
No message available