多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
**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"; } } ~~~