基于注解的mybatis和spring整合:[url]http://huangmin001.iteye.com/blog/1185806[/url]
[color=red]这个文章说的很详细,很值得一看[/color].
Mapper中注解(Annotation)的使用示例:[url]http://puras.cn/mybatis-annotation-e
xxxxxxxxxx 1public class Test {2 public static void main(String[] args) {3 String QJstr = "hello";4 String QJstr1 = "hehe";56
配置参考:[url]http://xiaoyaozjl.iteye.com/blog/1457182[/url]
源码参考:[url]http://xace.iteye.com/blog/731263[/url]
这里是另一种方法:[url]http://javaest.iteye.com/blog/187504[/url]
[b][color=red]特
有一个properties文件box.properties,内容如下:
Color=RedName=BoxLength=18Width=7Heigth=8获取其中的属性值,可用如下代码:InputStream in = null;Properties p = new Properties();try { in = new BufferedInputS
Node.getChildNodes()方法是获得所有子节点,你要判断子节点的类型是element还是其他类型,然后再继续往深层找.感觉挺麻烦.
例子1:
package com; import org.w3c.dom.*;import javax.xml.parsers.*;import java.io.*;public class Parse{ //D
装了个最新版本的svn后。apache不能正常启动。提示the requested operation has failed。花了半天时间研究有点眉目了。运行-》cmd 进入到apache的bin目录。输入[color=red]httpd.exe -w -n "Apache" -k start[/color]
会提示配置文件的具体那行出错。找起来就方便多了
mytables.sql
declare num int:=0;begin dbms_output.PUT_LINE('--------------------start pro[OracleTools]-----------------------'); --getStrBeforeLine select count(*) int
-声明游标
declare my_cursor cursor keyset for select * from info
--删除游标资源
deallocate my_cursor
--打开游标,在游标关闭或删除前都有效
open my_cursor
--关闭游标
close my_cursor
--释放游标
deallocate my_cursor
--
另一个参考例子:[url]http://www.blogjava.net/jxhkwhy/archive/2007/10/26/156115.html[/url]
附件有所需要的jar:
功能描述:刚开始接触Quartz,试着用Quartz整合spring实现每隔一分钟发送一封邮件连续发送10次
核心jar:
邮件发送:commons-email-1.
解决问题1:
xxxxxxxxxx 1package com.spring.sample; 23import java.util.Properties; 4public class MailProperties extends Properties 5{ 67public MailProperties() 8{
xxxxxxxxxx 1CREATE SYMMETRIC KEY key1 WITH ALGORITHM=DES2 ENCRYPTION BY PASSWORD='abc$123'3GO45OPEN SYMMETRIC KEY key1 6 DECRYPTION BY PASSWORD='abc$123'78DECLARE
<context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath*:conf/spring/applicationContext_core*.xml, classpath*
自由获得WebApplicationContext的方式。
package com.common;import javax.servlet.ServletContext;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.springframework.be
获得WebApplicationContext的方法:[url]http://panyongzheng.iteye.com/admin/blogs/1477702[/url]
[color=red]xml被扫描顺序参考:[/color] [url]http://sence-qi.iteye.com/blog/1328902 [/url]
由于服务器启动时的
Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/Type
解决方法:将Hibernate lib包下的asm.jar添加到项目的library中。
nested exception is java.lang
[url]http://www.iteye.com/problems/50299[/url]
错误原因是struts-rest-plguin.jar冲突,去掉这个包就可以了
[url]http://www.diybl.com/course/1_web/javascript/jsjs/20090415/165099.html[/url]
property 'delegate' has no getter method异常参考:[url]http://panyongzheng.iteye.com/blog/1492278[/url