第一章:开启springBoot之旅( 六 )

<plugin>

<groupId>org.springframework.boot</groupId>

<artifactId>spring-boot-maven-plugin</artifactId>

</plugin>

</plugins>

</build>

</project>

依赖引入后 , 基本上也就配置ok了 , 接下来我们看看功能的演示 。

创建一个controller ,

import org.springframework.web.bind.annotation.PathVariable;

import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

@RestController

public class HelloController {

推荐阅读