随笔分类 -  JAVAEE

摘要:参考:http://yushan.iteye.com/blog/265019 阅读全文
posted @ 2014-04-12 20:01 Atlas's blog 阅读(241) 评论(0) 推荐(0)
摘要:参数有顺序要求,顺序设置正确即可。 阅读全文
posted @ 2013-11-26 15:04 Atlas's blog 阅读(289) 评论(0) 推荐(0)
摘要:利用struts2自带的正则匹配,应该说这算是最官方的解决方案了在struts.properties中加正则匹配struts.action.excludePattern=/webservice/.*web.xmlXml代码 1 2 6 7 8 contextConfigLocation 9 classpath:com/travelsky/rap/conf/applicationContext.xml10 11 12 13 org.springframework.web.context.ContextLoaderLi... 阅读全文
posted @ 2013-11-26 13:42 Atlas's blog 阅读(460) 评论(0) 推荐(0)
摘要:用mybatis查询时,传入一个字符串传参数,且进行判断时,会报Java代码Thereisnogetterforpropertynamed'moduleCode'in'classjava.lang.String错误写法:Java代码selectmodulecode,modulename,modulevalue,linkurl,rank,parentmodule=isnull(parentmodule,1),moduledescriptionfromjob_modulemodulecode=#{moduleCode}(parentmoduleisnullorlen(par 阅读全文
posted @ 2013-09-16 14:00 Atlas's blog 阅读(28460) 评论(0) 推荐(1)
摘要:The content of elements must consist of well-formed character data or markup java.sql.SQLException: 无法转换为内部表示 阅读全文
posted @ 2013-06-28 12:12 Atlas's blog 阅读(338) 评论(0) 推荐(0)
摘要:cxf不能将String的参数序列化的问题解决问题:java.lang.NoSuchMethodError: org.codehaus.jettison.AbstractXMLStreamWriter.serializeAsArray(Ljava/lang/String;)V at org.apache.cxf.jaxrs.provider.json.utils.JSONUtils.createStreamWriter(JSONUtils.java:90) at org.apache.cxf.jaxrs.provider.json.JSONProvider.createWriter... 阅读全文
posted @ 2013-06-28 09:54 Atlas's blog 阅读(3056) 评论(0) 推荐(0)
摘要:在quartz中一个作业实例必须实现org.quartz.Job接口package com.unicom.gdnum.jobs;import java.util.*;import org.apache.commons.logging.*;import org.quartz.Job;import org.quartz.JobExecutionContext;import org.quartz.JobExecutionException;public class HelloworldJob implements Job{ static Log log=LogFactory.getLog(Hell. 阅读全文
posted @ 2013-02-19 16:37 Atlas's blog 阅读(15248) 评论(0) 推荐(0)
摘要:ref url:http://www.roseindia.net/struts/struts2/struts2uitags/autocompleter-example.shtmlIn this section, we are going to describe the autocompleter tag. The autocompleter tag always displays a dropdown list with the options that have at least a partial match with entered text in the textbox. If the 阅读全文
posted @ 2012-09-16 22:39 Atlas's blog 阅读(436) 评论(0) 推荐(0)
摘要:At work, recently I did a code cleanup of an existing Java project. After that exercise, I could see a common set of code violations that occur again and again in the code. So, I came up with a list of such common violations and shared it with my peers so that an awareness would help to improve the 阅读全文
posted @ 2012-09-14 09:27 Atlas's blog 阅读(189) 评论(0) 推荐(0)
摘要:最简单实用的就是:<s:textfield onclick="ShowCalendar('shijian')" id="shijian" readonly="readonly" size="20" name="jlandcf.shijian" readonly="true"><s:param name="value"><s:date name="jlandcf.shijian" format 阅读全文
posted @ 2012-09-13 22:49 Atlas's blog 阅读(406) 评论(0) 推荐(0)
摘要:来自网络,还没仔细看。很基础的东西就是由于没上心,三番五次地出错,这次好好总结下吧。众所周之,String 、Math、还有Integer、Double。。。。等这些封装类重写了Object中的equals()方法,让它不再比较句柄(引用),而是比较对象中实际包含的整数的值,即比较的是内容。而Object的equals()方法比较的是地址值。一般来说,如果你要把一个类的对象放入容器中,那么通常要为其重写equals()方法,让他们比较地址值而不是内容值。特别地,如果要把你的类的对象放入散列中,那么还要重写hashCode()方法;要放到有序容器中,还要重写compareTo()方法。本人愚见, 阅读全文
posted @ 2012-09-07 21:59 Atlas's blog 阅读(280) 评论(0) 推荐(0)
摘要:异常 之 java.lang.IllegalArgumentException:Document base *** does not exist or is not a readable这是由于在webapps里面将项目删除,却没有在其它相应的工作目录删除确定3点:1.该项目的War文件从***\apache-tomcat-6.0.16\webapps 移出;2.该项目的某些配置从 ***apache-tomcat-6.0.16\work\Catalina\localhost 移除;3.该项目的配置文件,目录: ***\apache-tomcat-6.0.16\conf\Catalina\lo 阅读全文
posted @ 2012-05-31 10:32 Atlas's blog 阅读(427) 评论(0) 推荐(0)
摘要:从公司把项目拷回来报此错公司的环境是jdk1.6本机为1.7jdk版本与aspectJrt不符。替换aspectjrt即可下载地址http://www.eclipse.org/aspectj/downloads.php 阅读全文
posted @ 2012-05-22 21:27 Atlas's blog 阅读(1341) 评论(0) 推荐(0)
摘要:<form id="pubInfoAction" name="pubInfForm" action="/ISM/test/pubInfoAction!addPubinfo.action" method="post"> <table class="wwFormTable"> <tr> <td class="tdLabel"></td> <td ><input type="text" 阅读全文
posted @ 2012-05-14 10:32 Atlas's blog 阅读(268) 评论(0) 推荐(0)
摘要:REFERENCES:http://sd.csdn.net/a/20120509/2805471.html 阅读全文
posted @ 2012-05-14 08:51 Atlas's blog 阅读(171) 评论(0) 推荐(0)
摘要:http://sd.csdn.net/a/20120507/2805362.html 阅读全文
posted @ 2012-05-08 09:21 Atlas's blog 阅读(112) 评论(0) 推荐(0)
摘要:OOA - Object-Oriented Analysis(面向对象分析)OOT - Object-Oriented Testing (面向对象测试)OOP - Object-Oriented Programming (面象对象编程)OOD - Object-Oriented Design(面向对象设计)OOSM - Object-Oriented Software Maintenance (面向对象软件维护)OOM - Object-Oriented Method(面向对象方法)REFERENCES:http://blog.csdn.net/cdh1213/article/details/ 阅读全文
posted @ 2012-04-19 09:26 Atlas's blog 阅读(2153) 评论(0) 推荐(0)
摘要:记各种抓狂,各种报错web.xml<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation 阅读全文
posted @ 2012-04-16 15:40 Atlas's blog 阅读(309) 评论(0) 推荐(0)
摘要:BAIDU的搜索我的实现,跟google的是一样的,没有像百度一样加载20条要修改的地方分为三处:Pager.java,Action,jspPager.java是用来存储各种页面属性以及定义输出到页面的分页样式的。Action则是将数据库里面的数据查询出来,然后将其传输到页面,当然还有Pager.java里面的输出样式也在这里面传输到页面。jsp取出数据显示viewSourcepager.java/** * @author Atlas Email:generationrent@gmail.com * */ public class Pager { private int current... 阅读全文
posted @ 2012-04-16 15:24 Atlas's blog 阅读(351) 评论(0) 推荐(0)
摘要:文件的开端错误我少写了个<网上也有说BOM什么的原因及其解决办法:1.xml编码错误该xml是UTF-8编码的,如果该文件通过UltraEdit编辑后,会在无BOM头的UTF-8文件中加入BOM,但是DOM4j不认这个BOM(dom4j1.3),解决的办法可以通过升级dom4j到1.6解决www.dom4j.org什么是BOM?http://www.unicode.org/faq/utf_bom.html#22Unicode规范中有一个BOM的概念。BOM——Byte Order Mark,就是字节序标记。在这里找到一段关于BOM的说明:在UCS 编码中有一个叫做"ZERO W 阅读全文
posted @ 2012-04-15 20:52 Atlas's blog 阅读(472) 评论(0) 推荐(0)