上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
摘要: ApplicationContext ac=ClassPathXmlApplicationContext("beans.xml"); 阅读全文
posted @ 2020-07-11 15:23 阿布都日 阅读(323) 评论(0) 推荐(0) 编辑
摘要: ApplicationContext:创建对象采用立即加载的方式。 BeanFactory:创建对象采用延迟加载的方式。 阅读全文
posted @ 2020-07-11 15:22 阿布都日 阅读(125) 评论(0) 推荐(0) 编辑
摘要: ClassPathXmlApplicationContext:它可以加载类路径下的配置文件,文件必须在类路径下。 FileSystemXmlApplicationContext:它可以加载磁盘任意路径下的配置文件,必须有访问权限。 AnnotationConfigApplicationContext 阅读全文
posted @ 2020-07-11 15:09 阿布都日 阅读(295) 评论(0) 推荐(0) 编辑
摘要: package com.example.ui; import com.example.factory.BeanFactory; import com.example.service.IAccountService; import com.example.service.impl.AccountSer 阅读全文
posted @ 2020-07-11 15:05 阿布都日 阅读(469) 评论(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 @ 2020-07-11 14:32 阿布都日 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 官网:http://spring.io/ 下载地址:http://repo.springsource.org/libs-release-local/org/springframework/spring 阅读全文
posted @ 2020-07-11 14:02 阿布都日 阅读(182) 评论(0) 推荐(0) 编辑
摘要: package com.example.ui; import com.example.factory.BeanFactory; import com.example.service.IAccountService; /** * 模拟一个表现层,用于调用业务层 */ public class Clie 阅读全文
posted @ 2020-07-11 13:55 阿布都日 阅读(183) 评论(0) 推荐(0) 编辑
摘要: package com.example.ui; import com.example.factory.BeanFactory; import com.example.service.IAccountService; import com.example.service.impl.AccountSer 阅读全文
posted @ 2020-07-11 12:23 阿布都日 阅读(311) 评论(0) 推荐(0) 编辑
摘要: package com.example.service.ui; import com.example.service.IAccountService; import com.example.service.impl.AccountServiceImpl; /** * 模拟一个表现层,用于调用业务层 阅读全文
posted @ 2020-07-11 00:36 阿布都日 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 降低依赖-编译期不依赖,运行期才依赖 1. 编译器依赖 package com.example.jdbc; import java.sql.*; public class JdbcDemo { public static void main(String[] args) throws SQLExce 阅读全文
posted @ 2020-07-11 00:17 阿布都日 阅读(162) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页