摘要:
选中要查找的方法,Alt+F7 阅读全文
摘要:
目的:实现api并生成swagger文档 引入swagger 在pom.xml添加swagger依赖 <!--整合Swagger2配置类--> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</a 阅读全文
摘要:
public String hello(){ return "hello word"; } 编译一下 报错了 前面选择了数据库,但是没有给数据库做相应的配置 配置一下 application.properties 上篇说过,这个文件放的是配置信息,类似netcore 的 appsettings.js 阅读全文
摘要:
演示项目采用IDEA 前提: 安装idea 安装jdk 1.8 1、第一步 新建项目 2、第二步 选择 Spring Initializr projicet SDK 选择jdk的安装位置(一般会默认选中) 其他不用管,直接next 备注: 为什么选择这个,前辈介绍Spring Initializr 阅读全文