上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 36 下一页
摘要: log4j.xml1、表示当前class的日志只会输出到当前日志中不会输入到其他日志中 2、设置指定类日志级别 3、禁止打印日志 4、自定义输出到指定文件中 ... 阅读全文
posted @ 2015-05-31 17:58 W&L 阅读(2644) 评论(0) 推荐(0) 编辑
摘要: 1、spring引入mybatis 2、mybatis配置 ... 阅读全文
posted @ 2015-05-31 17:52 W&L 阅读(162) 评论(0) 推荐(0) 编辑
摘要: SpringMVC基本包: org.springframework spring-webmvc 4.1.6.RELEASESpring测试包Junit org.springframework spring-test 4.1.6.RELEASE test junit junit... 阅读全文
posted @ 2015-05-31 17:38 W&L 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 配置可以通过xml文件来进行,大概有四种方式:1. 配置ProxyFactoryBean,显式地设置advisors, advice, target等2. 配置AutoProxyCreator,这种方式下,还是如以前一样使用定义的bean,但是从容器中获得的其实已经是代理对象3. 通过来配置,使用A... 阅读全文
posted @ 2015-05-31 17:11 W&L 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1、spring加载等价于 classpath:jdbc.properties 2、PropertiesInputStream inputstream = getClass().getResourceAsStream("/key.properties");properties.load(... 阅读全文
posted @ 2015-05-28 17:05 W&L 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1、DMCP连接池 2、C3P0连接池优于DMCP 3、JDBC连接 阅读全文
posted @ 2015-05-28 16:55 W&L 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 1、修改运行空间/home/mw/weblogic/Oracle/Middleware/user_projects/domains/base_domain/bin/setDomainEnv.shif [ "${JAVA_VENDOR}" = "Sun" ] ; then WLS_MEM_ARGS_6... 阅读全文
posted @ 2015-05-28 16:20 W&L 阅读(593) 评论(0) 推荐(0) 编辑
摘要: 1、获取驱动jar 从db2安装目录下获取,db2jcc4.jar(weblogic)(websphere需要db2jcc.jar、db2jcc_license_cu.jar)2、将驱动添加到CLASSPATH下添加到CLASSPATH下,websphere控制台直接设置变量进行指定jar路径,而w... 阅读全文
posted @ 2015-05-28 16:01 W&L 阅读(1291) 评论(0) 推荐(0) 编辑
摘要: Java反射机制一、什么是反射机制 简单的来说,反射机制指的是程序在运行时能够获取自身的信息。在java中,只要给定类的名字, 那么就可以通过反射机制来获得类的所有信息。二、哪里用到反射机制 有些时候,我们用过一些知识,但是并不知道它的专业术语是什么,在刚刚学jdbc时用过一行代码, Class.f... 阅读全文
posted @ 2015-05-05 23:02 W&L 阅读(126) 评论(0) 推荐(0) 编辑
摘要: SpringMVC之hello world世界一、配置web.xml文件 SpringMVCLesson SpringMVCLesson org.springframework.web.servlet.DispatcherServlet ... 阅读全文
posted @ 2015-05-03 22:54 W&L 阅读(140) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 36 下一页