Spring boot与微信小程序(1)
Spring boot
idae创建spring boot项目
1.新建一个Spring Initialize项目
勾选spring web,mysql drive和mybatis framework
Spring boot配置文件
spring boot配置文件有两种:yaml和properties
注释:本文采用yaml配置
这个即为spring boot的配置文件
通过重命名的方法将后缀改成yml
在com.example.springboot文件夹下创建两个文件夹pojo和controller(控制器)
在控制器里面创建一个java class,命名为Test
运行后访问localhost:8080/test/test即可看到hello spring root
微信小程序
下载:
创建项目:
这里使用注册号