
java
java开发相关
xinglu31
好记性不如烂笔头
展开
-
xwork2.ognl.OgnlValueStack] - Error setting expression ‘uploadFile‘
2021-04-05 12:24:17,215 WARN [com.opensymphony.xwork2.ognl.OgnlValueStack] - Error setting expression 'uploadFile' with value '[Ljava.lang.String;@295e4af1'ognl.MethodFailedException: Method "setUploadFile" failed for object com.tym.nursery.action.NotesA.原创 2021-04-05 17:26:19 · 374 阅读 · 0 评论 -
AnnotationValidationInterceptor.getActionMethod(AnnotationValidationInterceptor.java:75
@AnnotationValidationInterceptor.getActionMethod(AnnotationValidationInterceptor.java:75)错误AnnotationValidationInterceptor.getActionMethod(AnnotationValidationInterceptor.java:75)原因相关方法应该是public的,不过写成了private,所以找不到该方法解决办法方法由private 改为 public...原创 2021-04-04 20:17:37 · 260 阅读 · 0 评论 -
You have an error in your SQL syntax check the manual that corresponds to your MySQL server version
“You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax error”原因:数据库表中有个名为order的表名解决办法:@Table(name = "`order`")public class order {}参考:https://stackoverflow.com/a/11696074/1280..原创 2020-05-15 17:53:02 · 353 阅读 · 0 评论 -
Thymeleaf 页面中将long转换为日期格式
<td th:text="${#dates.format(new java.util.Date(activity.loggedTimestamp))}"></td>参考:https://stackoverflow.com/a/38944477/1280694原创 2020-05-15 17:48:35 · 925 阅读 · 0 评论 -
Tomcat9 在Windows Server启动不了
Tomcat 在Windows Server启动不了背景1. 系统环境腾讯云 Windows Server 2016JDK : JDK82. 现象: 点击startup.bat时,tomcat命令行窗口一闪而过 ,而且log日志没有任何更新分析:tomcat启动不了通常是JDK没有安装好使用 java -version 可以看到 jdk的相关信息,而使用javac -versio...原创 2019-11-26 11:22:38 · 1115 阅读 · 1 评论 -
SpringBoot - SpringApplicationConfiguration cannot be resolved to a type
SpringApplicationConfiguration cannot be resolved to a type 在按照网上的教程添加SpringBoot的单元测试时,遇到这个问题SpringApplicationConfiguration cannot be resolved to a type,Spring Boot @SpringApplicationConfigura...原创 2019-03-19 11:56:28 · 1786 阅读 · 0 评论 -
Eclipse 启动时显示Java was started but returned exit code=13
Eclipse启动时显示Java was started but returned exit code=13原因JDK版本与Eclipse不一致,例如JDK安装的时i586,但是Eclipse下载的时x64;解决办法(1) 重新安装对应的JDK;(2)或者重新下载对应的Eclipse;...原创 2019-06-11 11:42:57 · 703 阅读 · 0 评论 -
intellij idea 设置显示空格
intellij idea 设置显示空格点击菜单 File -> Settings在弹出的窗口点击 Editor -> General -> Appearance把Show whitespaces 勾选上就行。原创 2019-06-11 17:50:32 · 30598 阅读 · 1 评论 -
Http 406(Not Acceptable)
问题:Http Reponse 返回是406原因分析查询日志发现:服务器解析不存在处理该请求的方法发现是请求头里面的ACCEPT和ContentType与后端写的没有对应解决办法检查请求Header里面的Accept与Content-Type与后端写的是否对应。...原创 2019-09-29 11:18:18 · 499 阅读 · 0 评论 -
Java替换字符串中的\r\n
转载自:https://stackoverflow.com/a/3056864/1280694public class Program{ public static void main(String[] args) { String str = "This is a string.\nThis is a long string."; str = str.r...转载 2018-06-22 11:36:11 · 9575 阅读 · 0 评论 -
apache common lang 的 StringUtils.isNumeric 对于负数识别不了,使用NumberUtils.isNumber可以解决
StringUtils.isNumeric(null) = falseStringUtils.isNumeric("") = falseStringUtils.isNumeric(" ") = falseStringUtils.isNumeric("123") = trueStringUtils.isNumeric("ab2c") = falseStringUtils.isNumeric...原创 2018-05-21 11:56:19 · 7048 阅读 · 1 评论 -
writing aborted; java.io.NotSerializableException
org.springframework.remoting.RemoteAccessException: Could not access remote service [rmi:rmi接口地址]; nested exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is:原创 2014-01-21 10:57:29 · 2325 阅读 · 0 评论 -
creating emergency threads for unassigned pending tasks
参考这个:http://www.blogjava.net/liuyimx/archive/2013/05/03/296849.html错误出现原因是数据库配置错误,但是一开始没有打印出数据库错误而是显示com.mchange.v2.async.ThreadPoolAsynchronous。。。-- APPARENT DEADLOCK!!! Complete Status:后来过一阵原创 2014-01-15 10:59:22 · 1663 阅读 · 0 评论 -
Apache Mina Server 2.0 中文参考手册【笔记】
Mina 同时提供了网络通信的Server 端、Client 端的封装,无论是哪端,Mina 在整个网通通信结构中都处于如下的位置:可见Mina 的API 将真正的网络通信与我们的应用程序隔离开来,你只需要关心你要发送、接收的数据以及你的业务逻辑即可。同样的,无论是哪端,Mina 的执行流程如下所示:(1.) IoService:这个接口在一个线程上负责套接字的建立,拥有自原创 2014-03-31 15:10:14 · 508 阅读 · 0 评论 -
ice unmarshaoutofboundsexception
项目中出现了 ice unmarshaoutofboundsexception , 原因是使用了不同版本的mspproxy JAR包,例如WEB-INF下可能多了一个不同版本的JAR , 所以记录一下 。原创 2016-09-02 13:03:14 · 1434 阅读 · 0 评论 -
JavaMail邮件功能开发
/** * Copyright 2010 Commerce4J. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of...转载 2018-04-24 11:54:01 · 358 阅读 · 1 评论