这篇文章主要介绍了Springboot创建子父工程过程图解,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下
1.创建子父工程
2.添加pom配置文件
2.1 父工程pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://.demo.server.controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController;@RestControllerpublic class TestController { @RequestMapping("/helloworld") public String hello(String name) { return "name"+name; }}springboot子父项目启动成功。
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。