摘要: 1 搭建springboot 2 配置pom依赖(springboot版本为2.1.3) 3 写一个controller类 4 SpringBootApplication中增加注解ComponentScan,并启动 5 启动测试 http://localhost:8080/index 5.1 开启验 阅读全文
posted @ 2019-02-20 23:21 sun-sailing 阅读(573) 评论(0) 推荐(0)
摘要: 1 在官网https://start.spring.io/生成spring boot的模板 2 IDEA导入模板,设置如下勾选项,其他选项卡为默认值 3 idea呈现 4 新增controller类 package com.gbm.controller; import org.springframe 阅读全文
posted @ 2019-02-20 11:18 sun-sailing 阅读(551) 评论(0) 推荐(0)