
spring
大数据的未来
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
spring 配置bean的方法及依赖注入发方式
Bean 的配置方式:通过全类名(反射)、通过工厂方法(静态工厂方法 & 实例工厂方法)、FactoryBean 这里根据全类名配置bean 依赖注入发方式: 属性注入: applicationContext.xml配置文件为: xmlns:p="http://www.springframework.org/schema/p" xmlns:x原创 2015-08-25 00:19:43 · 1072 阅读 · 2 评论 -
spring 引用其他bean
applicationContext.xml配置文件为: xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema原创 2015-08-25 00:44:36 · 1167 阅读 · 0 评论 -
spring 第一个程序 hello
public class HelloWord { private String userName; public void setUserName(String userName) { this.userName = userName; } public void hello(){ System.out.println("hello:"+userName); } }原创 2015-08-24 23:44:39 · 657 阅读 · 0 评论 -
spring 引入外部配置文件
beans-properties.xml xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst原创 2015-08-25 21:44:17 · 2505 阅读 · 0 评论 -
spring mvc json乱码问题
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.原创 2015-08-28 11:07:35 · 741 阅读 · 0 评论 -
spring介绍
spring介绍 课程目标: 1.回顾 *传统的开发模式 *Struts与Hibernate可以做什么事? 2.Spring框架 *概念(术语了解) *Spring框架原创 2016-03-15 13:39:29 · 426 阅读 · 0 评论 -
spring jdbc 及代理模式
spring jdbc 及代理模式 共性问题: 1.服务器启动报错,什么原因? *jar包缺少、jar包冲突 1)先检查项目中是否缺少jar包引用 2) 服务器: 检查jar包有没有发布到服务器下;原创 2016-03-15 14:03:19 · 1094 阅读 · 0 评论 -
spring事务管理
Spring 第二天: 1.代理模式 2.Aop编程 3.Spring对Jdbc的支持 JdbcTemplate工具类 思考: 程序的“事务控制”, 可以用aop实现! 即只需要写一次,运行时候动态织入到业务方法上。 Spring提供了对事务的管理,开发者只需要原创 2016-03-15 14:33:30 · 423 阅读 · 0 评论