springboot 登录注册
摘要:注册: 使用insert,对数据库进行添加操作,将注册的用户信息写入数据库;并在注册时对第一次输入的密码和再次输入的密码进行比较,两次密码相同则注册成功,反之则跳转注册页面,显示注册失败。 登录: 使用select,查询数据库中的用户信息,将用户登录输入的账号(手机号),密码与查询内容进行比较,相同
阅读全文
springboot整合mybatis yml
摘要:`spring: datasource: username: root password: 123456 #?serverTimezone=UTC解决时区的报错 url: jdbc:mysql://localhost:3306/springboot?serverTimezone=UTC&useUni
阅读全文
构建Security的环境
摘要:一·导入依赖 1.首先在springboot项目中导入thymeleaf的依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId
阅读全文
thymeleaf常用命名空间
摘要:xmlns:th=http://www.thymeleaf.orgxmlns:sec=http://www.thymeleaf.org/extras/spring-securityxmlns:shiro=http://www.pollix.at/thymeleaf/shirohtml lang=en
阅读全文