本文共 641 字,大约阅读时间需要 2 分钟。
1.如何通过Eclipse来创建SpringBoot项目?
步骤一:首先File,选new Project
步骤二:然后输入选择 Spring Starter Project,选next
步骤三:Name:SpringBootDemoProject Group:com.adbycool Package:com.adbycool
步骤四:然后点next,SpringBootVersion:2.2.5 然后Available中添加依赖 比如MyBatis Spring Web
package com.springboot.demo.SpringBootDemoProject;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.RestController;@RestControllerpublic class HelloWorldController { @GetMapping("hello") public String hello() { String test="hello world"; return "Hello World "; }}
转载地址:http://crzqf.baihongyu.com/