第一个spring boot 程序
2024-08-25 12:11:12
安装、运行、预览省略
错误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
最新文章
- Unity3D移动平台动态读取外部文件全解析
- Angular.JS学习笔记——1
- 自动封装Servlet HttpServletRequest请求成为一个POJO对象
- HBase简介(很好的梳理资料)
- CABasicAnimation 使用
- Unity3D之Mecanim动画系统学习笔记(十一):高级功能应用
- flappy pig小游戏源码分析(3)——解剖util
- jQuery学习教程(2)
- HTML5 Web存储(Web Storage)技术及用法
- trie tree(字典树)
- Java代码优化策略
- switf资源
- [NOI2011]阿狸的打字机(好题!!!!)
- AlexeyAB大神版yolo 待完善
- 540. Single Element in a Sorted Array
- hadoop 开发环境搭建
- Mysql安装错误:Install/Remove of the Service Denied!解决办法
- 读书笔记 enum枚举之位标志属性(Flags)浅析
- TensorFlow函数:tf.truncated_normal
- 秒杀多线程第六篇 经典线程同步 事件Event