通过idea输出一个web

根据以下路径创建一个web文件
src/main/resources/public/index.html

文件名最好使用“index.html”然后在文件里编写相应的语言,然后将处理类中的

“@ResController"改为”Controller“,在运行后在浏览器上输入网址时输入:

localhost:端口号/

就行,不需要再输入

@GetMapping("") 

括号中的信息了

 

posted @ 2024-07-15 17:12  昏睡的云雪  阅读(28)  评论(0)    收藏  举报