IDEA快速创建SpringBoot

文件具有错误的版本 61.0, 应为 52.0报错可以看看是不是Springboot的版本比较高 和jdk版本不匹配

java 复制代码
package com.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RequestMapping("/hello")
public class HelloController {
    @RequestMapping("/h1")
    @ResponseBody
    public String hello(){
        return "SpringBoot";
    }
}

更改端口号

banner.txt彩蛋

java 复制代码
//                          _ooOoo_                               //
//                         o8888888o                              //
//                         88" . "88                              //
//                         (| ^_^ |)                              //
//                         O\  =  /O                              //
//                      ____/`---'\____                           //
//                    .'  \\|     |//  `.                         //
//                   /  \\|||  :  |||//  \                        //
//                  /  _||||| -:- |||||-  \                       //
//                  |   | \\\  -  /// |   |                       //
//                  | \_|  ''\---/''  |   |                       //
//                  \  .-\__  `-`  ___/-. /                       //
//                ___`. .'  /--.--\  `. . ___                     //
//              ."" '<  `.___\_<|>_/___.'  >'"".                  //
//            | | :  `- \`.;`\ _ /`;.`/ - ` : | |                 //
//            \  \ `-.   \_ __\ /__ _/   .-` /  /                 //
//      ========`-.____`-.___\_____/___.-`____.-'========         //
//                           `=---='                              //
//      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        //
//            佛祖保佑       永不宕机     永无BUG                    //
相关推荐
赴前尘2 小时前
golang 查看指定版本库所依赖库的版本
开发语言·后端·golang
程序员张35 小时前
Mybatis条件判断某属性是否等于指定字符串
java·spring boot·mybatis
invicinble7 小时前
从逻辑层面理解Shiro在JVM中是如何工作的
jvm·spring boot
Marktowin8 小时前
Mybatis-Plus更新操作时的一个坑
java·后端
haiyu柠檬9 小时前
IDEA和VSCode中好用的插件推荐
java·vscode·intellij-idea
赵文宇9 小时前
CNCF Dragonfly 毕业啦!基于P2P的镜像和文件分发系统快速入门,在线体验
后端
程序员爱钓鱼9 小时前
Node.js 编程实战:即时聊天应用 —— WebSocket 实现实时通信
前端·后端·node.js
好好研究9 小时前
SpringBoot注解的作用
java·spring boot·spring
Libby博仙10 小时前
Spring Boot 条件化注解深度解析
java·spring boot·后端