摘要: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc 阅读全文
posted @ 2020-05-05 23:39 帅的土掉渣 阅读(515) 评论(0) 推荐(0) 编辑
摘要: #整合mybatis#别名mybatis.type-aliases-package=com.liu.pojo#指定mapper的映射文件mybatis.mapper-locations=classpath:mybatis/mapper/*.xml 阅读全文
posted @ 2020-05-05 23:22 帅的土掉渣 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 1.application.yaml spring: datasource: username: root password: 123456 url: jdbc:mysql://localhost:3306/mybatis?serverTimezone=UTC&useUnicode=true&cha 阅读全文
posted @ 2020-05-05 23:19 帅的土掉渣 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1.shiro实现登陆拦截 package com.liu.config; import at.pollux.thymeleaf.shiro.dialect.ShiroDialect; import org.apache.shiro.spring.web.ShiroFilterFactoryBean 阅读全文
posted @ 2020-05-05 23:15 帅的土掉渣 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1.引入依赖 pom.xml2 <!--thymeleaf中使用shiro--> <dependency> <groupId>com.github.theborakompanioni</groupId> <artifactId>thymeleaf-extras-shiro</artifactId> 阅读全文
posted @ 2020-05-05 22:55 帅的土掉渣 阅读(1605) 评论(0) 推荐(0) 编辑