码迷,mamicode.com
首页 >  
搜索关键字:beans    ( 2634个结果
通用JDBC-demo
1、JDBC 的工具包(utils):包含获取数据库连接, 关闭数据库资源等方法 JDBCTools_pro.java package com.app.utils; import java.beans.PropertyVetoException; import java.io.IOException
分类:数据库   时间:2016-03-09 12:43:43    阅读次数:267
CREATING SPRING BEANS
https://springframework.guru/creating-spring-beans/
分类:编程语言   时间:2016-03-08 16:10:49    阅读次数:464
POJO对象
1自身特点 POJO是Plain Ordinary Java Objects的缩写不错,但是它通指没有使用Entity Beans的普通java对象,可以把POJO作为支持业务逻辑的协助类。 POJO实质上可以理解为简单的实体类,顾名思义POJO类的作用是方便程序员使用数据库中的数据表,对于广大的程
分类:其他好文   时间:2016-03-06 20:36:16    阅读次数:142
SPRING IN ACTION 第4版笔记-第六章RENDERING WEB VIEWS-006- 使用thymeleaf(TemplateResolver、SpringTemplateEngine、ThymeleafViewResolver、th:include、th:object、th:field="*{firstName}")
一、在Spring中使用thymeleaf的步骤 1.配置 In order to use Thymeleaf with Spring, you’ll need to configure three beans that enable Thymeleaf-Spring integration:? A
分类:编程语言   时间:2016-03-05 13:17:50    阅读次数:218
Spring 中使用Properties文件
Spring提供了加载Properties文件的工具类:org.springframework.beans.factory.config.PropertyPlaceholderConfigurer。 在Spring容器启动时,使用内置bean对属性文件信息进行加载,在bean.xml中添加如下: /...
分类:编程语言   时间:2016-03-02 23:40:00    阅读次数:223
SPRING IN ACTION 第4版笔记-第二章Wiring Beans-005-<constructor-arg>和c-namespace
1. 1 package soundsystem; 2 3 public class SgtPeppers implements CompactDisc { 4 5 private String title = "Sgt. Pepper's Lonely Hearts Club Band"; 6 p
分类:编程语言   时间:2016-03-02 11:06:43    阅读次数:181
SPRING IN ACTION 第4版笔记-第二章WIRING BEANS-007-以set方法注入<property>\p-namespace\util-space
一、注入简单属性 1 package soundsystem.properties; 2 import org.springframework.beans.factory.annotation.Autowired; 3 4 import soundsystem.CompactDisc; 5 impo
分类:编程语言   时间:2016-03-02 10:55:30    阅读次数:223
spring AOP 实现事务和主从读写分离
1 切面 是个类 2 切入点 3 连接点 4 通知 是个方法 5 配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="htt
分类:编程语言   时间:2016-03-01 12:48:49    阅读次数:1811
spring MVC4 配置详解(个人记录)
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
分类:编程语言   时间:2016-02-29 12:51:26    阅读次数:181
Spting使用memcached
applicationContext.xml配置文件: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3
分类:系统相关   时间:2016-02-28 22:42:47    阅读次数:398
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!