Springboot实现用户登录
1、maven加载依赖包
2、修改数据库连接配置 application.properties spring.datasource.url=jdbc:mysql://localhost:3306/test?autoReconnect=true&useSSL=false&allowMultiQueries=true&useUnicode=true&characterEncoding=utf-8 spring.datasource.username=root spring.datasource.password=root
3、数据库导入表数据 mysqldb.sql
4、运行项目,访问地址:http://localhost:8080/user/index