dmwdmc
dmwdmc · 共 157 篇文章
Eclipse设置文件默认打开方式
windows ==> preferences ==> General ==> Editors ==> file Associations,
2013-08-23 09:12 · ide开发工具 · 评论(0)
mybatis 调用存在过程
mybatis 调用存在过程{ call proc_saveamt_grant(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) } Serivice SAICDao.insertTsaveamt(tsaveamt); 根据mybatis 的 配置。返回的值自动保存在tsaveamt DAO void insertTemploydcmSQ(Tmember tmember)throws SQLException; {call proc_saveamt_grant(#{memb_no},#{proc_gb},#{proc_yn},#{order_no},#{order_g…
2013-08-21 13:40 · 数据库 持久层 · 评论(0)
关于浏览器自动加上<pre>标签
http://blog.csdn.net/longxia1987/article/details/8447119 于html 标签:<摘自:w3school> pre 元素可定义预格式化的文本。被包围在 pre 元素中的文本通常会保留空格和换行符。而文本也会呈现为等宽字体。
2013-08-15 09:47 · 浏览器兼容 · 评论(0)
spring mvc validator
http://haohaoxuexi.iteye.com/blog/1812584 @Null 限制只能为null @NotNull 限制必须不为null @AssertFalse 限制必须为false @AssertTrue 限制必须为true @DecimalMax(value) 限制必须为一个不大于指定值的数字 @DecimalMin(value) 限制必须为一个不小于指定值的数字 @Digits(integer,fraction) 限制必须为一个小数,且整数部分的位数不能超过integer,小数部分的位数不能超过fraction @Future 限制必须是一个将来的日期 @Max(v…
2013-08-14 17:08 · 框架相关文章 · 评论(0)
spring mybatis 事务问题解决
好几天的困惑,这个问题终于解决。 以下这行是控制spring用注释来进行事务的。 <tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" /> 关键在于这行必须放在 mvc-dispatcher 下的spring指定配置文件中。这样serivce实现类就可以先被CglibAopProxy代理了。 而不能放在 指定目录下。 web.xml 他们的原理和区别 context-param和init-param区别 web.xml里面可以定义两种参数: (1)applicatio…
2013-08-10 21:00 · 数据库 持久层 · 评论(0)
解决 artifact javax.jms missing 问题
由于 javax.jms 是sun的,所以maven中心库已经没有了。 所以我们要是有什么包以来于它的话,就用下面的去掉。
2013-08-08 11:35 · Maven · 评论(0)
jquery ajax fileupload.js 下载
2013-08-03 15:29 · 软件下载 · 评论(0)
eclipse 布局混乱
楼上说的是编辑环境的默认布局设置。 eclipse设置默认窗口布局模式的方法是: 1、打开eclipse; 2、左键单击菜单条中的 Window 菜单; 3、选择第七个,即 Reset Perspective 。 此时你的eclipse窗口布局已经还原为默认模式,祝你学习愉快!
mybatis打印sql
用log4j在控制台输出,在web.xml中配置log4j.properties的路径,properties文件 log4j.rootLogger=DEBUG, Console #Console log4j.appender.Console=org.apache.log4j.ConsoleAppender log4j.appender.Console.layout=org.apache.log4j.PatternLayout log4j.appender.Console.layout.ConversionPattern=%d %-5p - %m%n log4j.logger.java.sql…
exist union 运用求大中小级联
所有item表中,大,中,小item. 其中大的item是W039,中的事W002,小的事W003. 然后item的betogroup指向上一级item的grou. 求所有大的item和它所属的中,小item. select * from item smallitem where itemtype='W003' and exists ( select '1' from item middleitem where middleitem.itemtype='W002' and smallitem.betogroup= middleitem.group and exists ( select '1…
会是类无法加载到jvm中去的代码
static { System.exit(-1); } 比如我有一个pojo类, public class Category implements Serializable{ private static Properties sysProps = null; private static String dirConf; static { System.exit(-1); } } 那么这个类讲不会进入jvm中,如果服务器启动时需加载这个类,那么会导致服务器不能启动。
2013-07-28 14:38 · core JAVA jvm · 评论(0)
http 的四大方式
有get,post,delete,put. 其中delete,put在tomcat 里模式不支持,需要在web.xml里 •接下来,从客户端通过 Ajax XMLHTTPRequest 发起 DELETE/PUT 请求: [javascript] view plaincopyprint? 01.function getXMLHTTPRequest(){ 02. if (XMLHttpRequest) { 03. return new XMLHttpRequest(); 04. } else { 05. try{ 06. return new ActiveXObject('Msxml2.XML…
2013-07-24 11:33 · servlet http 协议 · 评论(0)