摘要: RedisConfig.java: package com.tsvv.config; import java.util.HashSet; import java.util.Set; import org.springframework.beans.factory.annotation.Value; 阅读全文
posted @ 2019-11-22 14:05 涂山有雨 阅读(323) 评论(0) 推荐(0) 编辑
摘要: web.xml模板 阅读全文
posted @ 2019-11-22 13:59 涂山有雨 阅读(373) 评论(0) 推荐(0) 编辑
摘要: log4j.properties模板 阅读全文
posted @ 2019-11-22 13:43 涂山有雨 阅读(222) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2019-11-22 13:42 涂山有雨 阅读(1264) 评论(0) 推荐(0) 编辑
摘要: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springfra 阅读全文
posted @ 2019-11-22 13:40 涂山有雨 阅读(2111) 评论(0) 推荐(1) 编辑
摘要: mybatis-config.xml模板 阅读全文
posted @ 2019-11-22 13:34 涂山有雨 阅读(868) 评论(0) 推荐(0) 编辑
摘要: mapper.xml模板 阅读全文
posted @ 2019-11-22 13:29 涂山有雨 阅读(3288) 评论(0) 推荐(0) 编辑
摘要: Servlet基础认识 阅读全文
posted @ 2019-11-07 00:05 涂山有雨 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 单例模式的三个特点: 1. 私有构造方法; 2. 内部创建静态对象; 3. 提供静态方法返回该静态对象; 单例设计模式主要有两种实现方法:饿汉式和懒汉式 饿汉式单例:在定义开始,便实例化自己。 懒汉式单例:在第一次调用时实例化自己。 懒汉式与饿汉式的区别: 1. 线程安全: 饿汉式天生线程安全,可以 阅读全文
posted @ 2019-11-01 01:31 涂山有雨 阅读(894) 评论(0) 推荐(0) 编辑
摘要: Spring容器在默认情况下管理的bean是单例(singleton)的,即该bean只会创造一个对象,无论之后调用多少次该bean,都只会返回同一个对象。 多例(prototype)模式,每次调用同一个bean,都会创造不同的对象。 实验: 两个实验类: application.xml: Test 阅读全文
posted @ 2019-11-01 01:04 涂山有雨 阅读(1669) 评论(0) 推荐(1) 编辑