摘要: jdbc.properties: mysql.driver=com.mysql.jdbc.Drivermysql.url=jdbc:mysql://localhost:3306/rbac2?serverTimezone=GMT&characterEncoding=UTF8mysql.username 阅读全文
posted @ 2020-02-11 23:13 Tsugar 阅读(1164) 评论(0) 推荐(0) 编辑
摘要: ehcache.xml: <?xml version="1.0" encoding="UTF-8"?><ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http: 阅读全文
posted @ 2020-02-11 18:23 Tsugar 阅读(524) 评论(0) 推荐(0) 编辑
摘要: mybatis-config.xml: <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd 阅读全文
posted @ 2020-02-11 18:21 Tsugar 阅读(167) 评论(0) 推荐(0) 编辑
摘要: generator.xml: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1. 阅读全文
posted @ 2020-02-11 18:19 Tsugar 阅读(228) 评论(0) 推荐(0) 编辑
摘要: log4j.properties: #配置根节点log4j.rootLogger=DEBUG,Log4jConsole#自定义#log4j.logger 自定义的日志级别#org.apache.ibatis 包名 我自定义日志的目的是为了打印xxx包下的日志#INFO 什么都看不到#WARN 可以看 阅读全文
posted @ 2020-02-11 18:18 Tsugar 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Ehcache Oscache Ehcache 先引入两个jar包 <!-- https://mvnrepository.com/artifact/org.ehcache/ehcache --><dependency> <groupId>org.ehcache</groupId> <artifact 阅读全文
posted @ 2020-02-11 18:15 Tsugar 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 代码分离 idea快捷键 //alt+insert 生成代码 //ctrl+n 查找类 //ctrl+h 查看类关系 //alt+enter 提交解决方案 mybatis三种 SQL和代码分离 方式 1.Xml方式 使用很麻烦(找坐标) 2.接口+注解 (对类有侵入性) 3.混合模式 接口+Xml 阅读全文
posted @ 2020-02-09 09:09 Tsugar 阅读(93) 评论(0) 推荐(0) 编辑
摘要: Spring Test 1.对junit的一个扩展 必须先导入junit jar包 2.简化获取bean的步骤 它的底层也是IOC容器 3.IOC的全部 junit的全部 junit的版本必须是4.12以上 @RunWith(SpringJUnit4ClassRunner.class)@Contex 阅读全文
posted @ 2020-02-06 01:48 Tsugar 阅读(156) 评论(0) 推荐(0) 编辑
摘要: AOP 面向切面编程 AOP的功能是基于IOC的功能之上,所有我们必须先引用IOC的的全部jar包 AOP和aspects是构成AOP的基础,所以必须得引入两个jar包 <!-- https://mvnrepository.com/artifact/org.springframework/sprin 阅读全文
posted @ 2020-02-06 00:14 Tsugar 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1.IOC 控制反转 IOC容器导入jar包: <!-- https://mvnrepository.com/artifact/org.springframework/spring-context --><dependency> <groupId>org.springframework</group 阅读全文
posted @ 2020-02-05 20:40 Tsugar 阅读(186) 评论(0) 推荐(0) 编辑