Work_
Benjamin_whx
这个作者很懒,什么都没留下…
展开
-
Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
若myEclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误,我们可以通过一下方法进行处理:首先, 打开Eclipse软件,选择菜单栏run,在二级菜单中选择 Debug Configurations,然后:在弹出的窗口中选择(x)=arguments选项卡,VM argumen原创 2014-03-05 17:54:14 · 5041 阅读 · 0 评论 -
Spring定时实际项目运用
applicationContext-timer.xml原创 2014-12-08 09:22:25 · 1121 阅读 · 0 评论 -
Unsupported major.minor version 51.0解决办法
我使用的是Eclipse-jee-indigo + JDK 1.6.23环境,结果使用时出现Unsupported major.minor version 51.0错误提示,下面我来介绍Unsupported major.minor version 51.0错误的解决办法今天偶然间同事遇到一个问题,也加深了自己对eclipse中build path和java compiler转载 2015-01-30 11:53:19 · 1018 阅读 · 0 评论 -
Atomikos多数据源配置项目实例
applicationContext.xml<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:原创 2014-12-23 17:22:10 · 3827 阅读 · 1 评论 -
Class org.apache.struts2.json.JSONWriter can not access a member of *
异常形式:Class org.apache.struts2.json.JSONWriter can not access a member of * 或是 Class com.googlecode.jsonplugin.JSONWriter can not access a member of class*第一种是struct2.1.8与json结合时的异常,第二种是struct2原创 2015-01-30 09:49:46 · 2403 阅读 · 0 评论 -
com.atomikos.icatch.SysException: Error in init(): Log already in use
在项目中使用atomikos时,如果在同一个环境中部署两个以上这种项目,则可能会报出com.atomikos.icatch.SysException: Error in init(): Log already in use异常,这个信息是因为atomikos在默认情况下是将console_file_name和log_base_name设置为默认值:tm.out和tmlog0.log,并且会将这转载 2014-10-13 16:03:05 · 2666 阅读 · 0 评论 -
导入外部js文件时出现乱码的解决
首先下载个pinyin4j的jar包---->转载 2014-08-07 18:32:52 · 2974 阅读 · 0 评论 -
java.lang.OutOfMemoryError错误处理
原因: 常见的有以下几种:1.内存中加载的数据量过于庞大,如一次从数据库取出过多数据;2.集合类中有对对象的引用,使用完后未清空,使得JVM不能回收;3.代码中存在死循环或循环产生过多重复的对象实体;4.使用的第三方软件中的BUG;5.启动参数内存值设定的过小;常见错误提示: 1.tomcat:java.lang.OutOfMemoryError: PermGen spac转载 2014-09-18 17:46:52 · 683 阅读 · 0 评论 -
Pointcut is not well-formed: expecting 'name pattern' at character position 36
原创 2014-07-15 15:16:50 · 3423 阅读 · 0 评论 -
joinColumns和inverseJoinColumns的用法
最近在工作中使用springside,里面用到了hibernate的多对多一开始我在配置department(部门表)和menu(栏目表)的时候,这样写的。Department实体类中的getMenus上写的joinColumn是menu_id,inverseJoinColumns写的是department_id我的页面是根据所选部门查找出对应的栏目权限从而打勾,我数据库中间表原创 2014-07-25 14:07:02 · 32283 阅读 · 1 评论 -
error the @annotation pointcut expression is only supported at Java 5 compliance level or above
今天再工作中碰到了这个问题,着实让我头大了一阵error the @annotation pointcut expression is only supported at Java 5 compliance level or above这句话的意思是@annotation切点表达式仅支持 Java5或者以上版本。但是我的机器上装的是7,我就很费解了,后来摸索了半天终于找到了问题所在原来我原创 2014-04-09 11:20:29 · 12350 阅读 · 9 评论 -
WARN : net.sf.ehcache.config.Configurator#configure : No co nfiguration found.Configuring ehcache
在工作中运行文件时报了如下的警告,经过研究发现没有把配置文件放在指定classes目录下(0 ms) [main] WARN : net.sf.ehcache.config.Configurator#configure : No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the c原创 2014-04-09 13:23:21 · 2273 阅读 · 0 评论 -
SpringSide3中多数据源配置
applicationContext.xml中配置下面是加载外部配置文件:application.properties<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> classpath*:/application.pro原创 2014-12-12 18:01:09 · 1043 阅读 · 0 评论