🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
**1.SpringBootDemo 入口** ~~~ package com.nobb; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; //@SpringBootConfiguration //@EnableAutoConfiguration //@ComponentScan @SpringBootApplication public class SpringBootDemo { //SpringBoot入口方法 public static void main(String[] args){ SpringApplication.run(SpringBootDemo.class, args); } } ~~~ **2.controller测试** ~~~ package com.nobb.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class HelloController { @RequestMapping("/hello") public String hello(){ return "hello"; } } ~~~