Java是一种可以撰写跨平台应用程序的面向对象的程序设计语言。Java 技术具有卓越的通用性、高效性、平台移植性和安全性,广泛应用于PC、数据中心、游戏控制台、科学超级计算机、移动电话和互联网,同时拥有全球最大的开发者专业社群。
文章浏览阅读6.1k次。警告: Can't transform property 'acceptEvent' from java.lang.String into java.util.List. Will register a default Morpher产生错误的代码:import net.sf.json.JSONObject; public static T jsonToObject(String jsonStr_from java.lang.string into java.util.list. will register a default morpher
文章浏览阅读5.4k次。Java 遍历指定目录及子目录下的文件/** * 遍历指定目录及子目录下的文件 * * @author testcs_dn * @date 2014年12月12日下午2:33:49 * @param file 要遍历的指定目录 * @param collector 符合条件的结果添加到此List中 * @param pathInclude 路径中包含指定的字符串
文章浏览阅读5.7k次。从SVN上检出的MAVEN项目,却出现目标运行时环境Tomcat v6.0未定义的错误,这个错误出现的原因是提交项目的人使用的是Tomcat v6.0,而我使用是Tomcat v7.0,这里就讲一下解决的步骤。在出错的项目上单击鼠标右键》Build Path》Configure Build Path。 这里显示的Tomcat v6.0状态为Unbound,选中把它删除。 然后点击“Add_apache tomcat v6.0
文章浏览阅读1.3w次,点赞5次,收藏9次。Java项目导出源代码jar包在Eclipse中查看中文注释乱码的问题由于项目比较多,全部添加到Maven主项目中的话虽然更新调试方便,但项目多了严重影响Eclipse的速度,所以将一部分项目单独导出包含源代码的jar包,上传到nexus上,供其它项目引用;但是在引用的项目中通过Eclipse查看时,中文注释都变成了乱码。其实这是eclipse的默认编码造成的问题。解决方案:1、修改Eclipse_eclipse 导出中文注释
文章浏览阅读9.4w次,点赞31次,收藏40次。在使用Eclipse的Build Project功能时,提示以下错误: An internal error occurred during: “Build Project”. GC overhead limit exceeded 如图: 搜索的一下,是属于java.lang.OutOfMemoryError。 OOM大家都知道,就是JVM内存溢出了,那GC overhead limit_"an internal error occurred during: "build project". attempted to endrule: nu"
文章浏览阅读1.5w次,点赞11次,收藏27次。java中把一个字符串中大写字母转换为小写,小写字母转换为大写观看提示:这里提供2中思维,但是第一种是正确的,第二种是错误的;第二种的思维可以了解了解,但是需要注意的是如果某个字符串定义为String类型,那么这个串就不能改变了;如果需要改变,那么应该使用StringBuffer,这个例子也能够很好的说明StringBuffer和String之间的区别!下面的代码中exChange()能够得到正确_java编写一个程序,先将字符串中的大写字符转小写输出,再将字符串中的小写字符转大
文章浏览阅读7.6w次,点赞6次,收藏8次。项目启动后,控制台报如下错误:org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a_org.springframework.data.redis.redisconnectionfailureexception: cannot get j
文章浏览阅读2.4w次,点赞4次,收藏5次。控制台输出的错误信息如下:[INFO] Scanning for projects...[INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1[INFO] _dos 下面 no compiler is provided in this environment. perhaps you are runnin
文章浏览阅读3.6w次,点赞4次,收藏3次。详细错误信息如下:严重: Error starting static Resourcesjava.lang.IllegalArgumentException: Document base C:tomcat7054webroottestcs_dn-web does not exist or is not a readable directory at org.apache.naming.r
文章浏览阅读3w次,点赞12次,收藏4次。log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja_log4j:error setfile(null,true) call failed.
文章浏览阅读6.7w次。org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'masterDataSource' defined in file [C:workspace.metadata.pluginsorg.eclipse.wst.server.coretmp0w_"could not resolve placeholder 'master.datasource.url' in string value "${mas"
文章浏览阅读1.6w次。HTTP Status 500 - Could not open JDBC Connection for transaction; nested exception is java.lang.NoClassDefFoundError: com/mchange/v2/sql/SqlUtilstype Exception reportmessage Could not open JDBC Connect_could not open jdbc connection for transaction; nested exception is java.lan
文章浏览阅读9.3k次。Java 一次性读取或写入文件内容public class IOHelper { public static void copy(Reader in,Writer out) throws IOException { int c = -1; while((c = in.read()) != -1) { out.write(c); } } public static St_java iohelper.saveasfile
文章浏览阅读4.7k次。方法一:通过jar命令jar命令的用法:下面是jar命令的帮助说明:用法:jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point] [-C dir] files ...选项包括: -c 创建新的归档文件 -t 列出归档目录 -x 解压缩已归档的指定(或所有)文件 -u 更新现有的归档文件 -v _把部分代码打成jar包
文章浏览阅读5.5w次,点赞7次,收藏6次。错误信息:Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING环境现象chromechrome浏览器下,之前访问的界面是什么样子,访问出错的这个网址后,界面依然还是什么样子,只是不响应鼠标和键盘事件了! 按下F12,打开调试窗口,就显示一句错误信息: IE兼容内核IE兼容内核浏览器下,打开之后界面是空白的,按下F12,打开调试_failed to load resource: net::err_incomplete_chunked_encoding
文章浏览阅读4.3w次,点赞16次,收藏30次。执行Maven Install打包的时候,提示以下警告信息: [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!解决方法: 打开项目属性》Resources,按下图修改就好了。_using platform encoding (gbk actually) to copy filtered resources, i.e. buil
文章浏览阅读6.9k次。Java实体Date类型属性值无法保存到数据表对应字段的问题项目框架:maven+springMVC+mybatis实体属性://推荐时间private java.util.Date recommendDate;数据库字段:ALTER TABLE `resource`ADD COLUMN `RECOMMEND_DATE` date NULL COMMENT '推荐时间';属性赋值:resourc_date数据无法写入表
文章浏览阅读1.5w次。执行Maven Install打包的时候,出现以下错误信息:[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project pro-test: Error assembling WAR: webxml attribute is required (or_error assembling war: webxml attribute is required (or pre-existing web-inf/
文章浏览阅读5.8k次。执行Maven Install打包的时候,出现以下错误信息: [proguard] proguard.ParseException: Expecting keyword 'class', 'interface', or 'enum' before '-libraryjars' in argument number 7 [proguard] at proguard.Configuration_proguard.parseexception: expecting keyword 'class', 'interface', or 'enum' b
文章浏览阅读8.7k次。执行Maven Install打包的时候,出现以下错误信息:[INFO] proguard jar: E:mavenmvnResponetsfproguardproguard-base5.2proguard-base-5.2.jar [proguard] ProGuard, version 5.2 [proguard] java.io.IOException: The same_maven java proguard libtools.jar is specified twice.
文章浏览阅读7.9k次。执行Maven Install打包的时候,出现以下错误信息:[ERROR] COMPILATION ERROR : [INFO] -------------------------------------------------------------[ERROR] No compiler is provided in this environment. Perhaps you are runn_ubuntu报错 no compiler is provided in this environment. perhaps you are runn
文章浏览阅读1.4w次,点赞5次,收藏3次。详细错误信息:org.springframework.dao.TransientDataAccessResourceException: ### Error querying database. Cause: java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestam_java.sql.sqlexception: value '0000-00-00 00:00:00' can not be represented as
文章浏览阅读3.4w次,点赞20次,收藏21次。错误信息:publishing to tomcat v8.0 server at localhost has encontered a problemCould not publish to the server. java.lang.NullPointerException产生错误的操作:解决方法:1、找到Tomcat的配置文件“context.xml”,在Context标签中添加两个属性( r_nullpointerexception cannot be resolved to a type
文章浏览阅读6.2k次。执行Maven Install打包的时候,出现以下错误信息:[proguard] java.io.IOException: You have to specify '-keep' options for the shrinking step. [proguard] at proguard.SeedPrinter.write(SeedPrinter.java:60) [proguard]_proguard you have to specify '-keep' options for the shrinking step.
文章浏览阅读3.7k次。执行Maven Install打包的时候,出现以下错误信息: [proguard] Error: Expecting keyword 'class', 'interface', or 'enum' before '-optimizationpasses' in line 11 of file 'F:Workspacespro-testproguard.conf', [proguard]_expecting the keyword endclass
文章浏览阅读1w次。问题场景在使用Maven + Proguard打包项目进行混淆时,提示以下错误:[proguard] ProGuard, version 4.4 [proguard] Reading input... [proguard] java.io.IOException: The input doesn't contain any classes. Did you specify the proper_the input doesn't contain any classes
文章浏览阅读5.5w次。完整错误信息:严重: Servlet.service() for servlet [springmvc] in context with path [/xinghe-platform-web] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemExceptio_the expression 'list' evaluated to a null value.
文章浏览阅读6.6k次,点赞4次,收藏2次。获取实体的所有可见属性值以下代码提供了两种实现,一种是基于List,一种是基于Map; 基于List的实现更节省内存,更高效一些;如果你有其它特殊的需求,可以根据实际参考以下代码进行扩展,或许有需要用到Map的情况呢!/** * 获取实体的所有可见属性值 * @param object 实体类的实例 * @return 返回一个Object数组,该数组包含实体的所有可见属性值_java反射获取多个 对象,返回数组
文章浏览阅读8.4k次。执行Maven Install打包的时候,出现以下错误信息:[proguard] ProGuard, version 4.4 [proguard] Reading program war [F:Workspacespro-testtargetpro-test-0.0.1-SNAPSHOT.war] (filtered) [proguard] Error: The input doesn'_error: the input is empty. you have to specify one or more '-injars' options
文章浏览阅读1.9w次,点赞2次,收藏3次。执行Maven Install打包的时候,出现以下错误信息:[ERROR] Failed to execute goal com.github.wvengen:proguard-maven-plugin:2.0.10:proguard (default) on project core: Can't find file F:Workspacesbase-corecoretargetcore_failed to execute goal com.github.wvengen:proguard-maven-plugin:2.6.0:progua