- 博客(18)
- 收藏
- 关注
原创 VS项目属性页内容不一样
VS项目属性页内容不一样VS项目属性页内容不一样网上很多关于项目属性设置的截图,发现跟我的不一样,后来发现,我的是C#项目,截图是这样的。新建一个 C++项目,想属性截图是这样的不同语言的项目,项目属性页是不一样的。...
2020-05-27 12:17:25 762
原创 arget runtime Apache Tomcat v8.0 is not defined
导入的别人的项目,报Target runtime Apache Tomcat v8.0 is not defined.错误,但是已经把项目的java building Path改成了本机的 tomcat版本,还是有红叉。后来发现需要更改项目配置文件。org.eclipse.wst.common.project.facet.core.xml如下图所示:Tomcat要改成...
2019-02-28 19:50:51 223
原创 JSP乱码问题
在JSP文件post提交后,接收到参数有乱码,虽然JSP文件加了相关配置,<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN...
2019-02-14 11:32:28 153
原创 request method 'post' not supported Rest Delete put 方式404,405错误
测试rest风格 Delete, PUT 访问的时候报错。request method 'post' not supported 后来发现在web.xml中没有添加HiddenHttpMethodFilter过滤器,添加过滤器的代码如下: <filter> <filter-name>hidden</filter-name> ...
2019-02-13 18:06:01 901
原创 Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC
Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986在使用Tomcat8.5调试的时候报错,因为通过get方法地址访问的时候,提交的字符不符合标准,在Chrome浏览器中可以访问,当时在Eclipse自带浏览器中不能访问。经了解,这个问题是...
2019-02-13 16:04:08 140
原创 WEB-INF文件夹下的文件是无法通过地址栏访问的
WEB-INF文件夹下的文件是无法通过地址栏访问的默认情况下,是不能访问的。可以访问WebContent文件夹下面的文件。
2019-02-13 11:15:45 594
原创 java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testupdate
junit4测试的时候,测试函数不能有参数,有参数就会报错。也不能有范围值,函数类型必须是void。java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testupdate...
2019-02-12 11:18:25 2404 1
原创 使用@Autowired 自动装载,报java.lang.NullPointerException错误
使用@Autowired 自动装载,但是报java.lang.NullPointerException错误,后来测试,发现如下图所示,jdbcTemplate输出为null 经反复研究发现,自动装载并没有把配置文件中配置的bean转载到内存中。采用下面的方式,在应用实现类中去测试就可以测试通过,输出正常的bean。在这个中方式,在接口实现类中,TellersADaoIm...
2019-02-12 09:42:54 4490 1
原创 java.lang.NoSuchMethodError: org.springframework.core.convert.support.DefaultConversionService.getSh
今天程序测试jdbc的方式,程序一直报错,错误内容如下:java.lang.NoSuchMethodError: org.springframework.core.convert.support.DefaultConversionService.getSharedInstance()Lorg/springframework/core/convert/ConversionService; ...
2019-02-11 11:26:00 3715 1
原创 java.lang.NoClassDefFoundError: org.springframework.beans.FatalBeanException
这两天程序一直报错,下面这个错误java.lang.NoClassDefFoundError: org.springframework.beans.FatalBeanException at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(Abst...
2019-02-03 17:40:05 8072 3
原创 Type mismatch affecting row number 0 and column type 'NUMBER'
test程序报错,Type mismatch affecting row number 0 and column type 'NUMBER'is of type [java.lang.Long] and cannot be converted to required type [long]因为下面的写法有错误,应该是Long.class应该是大写的Long。long是原始数据类型,...
2019-02-01 18:04:21 1806 1
原创 Could not initialize class org.springframework.jdbc.core.StatementCreatorUtils
在编译的时候没有错误,但是 用 Junit Test的时候,报下面的错误。java.lang.NoClassDefFoundError: Could not initialize class org.springframework.jdbc.core.StatementCreatorUtils如下图所示,后来发现是spring-core-4.0 的版本有点低了,更新成spring-co...
2019-02-01 15:54:02 2021
原创 Multiple markers at this line - The type org.springframework.dao.DataAccessException cannot be
今天测试使用JdbcTemplate,报错,报错内容如下:Multiple markers at this line - The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class ...
2019-02-01 14:56:59 2029
原创 Activiti使用oracle数据库部署流程实例启动流程实例报错
create table ACT_GE_PROPERTY ( NAME_ NVARCHAR2(64), VALUE_ NVARCHAR2(300), REV_ INTEGER, primary key (NAME_) )java.sql.SQLSyntaxErrorException: ORA-00955: 名称已由现有对象使用java.sql.SQLIntegrityConstr...
2018-08-23 23:01:53 3198
原创 Activiti配置Oracle不能自动创建表流程启动是表或试图不存在的问题
Activiti配置Oracle不能自动创建表流程启动是表或试图不存在的问题通过设置的方法,可以及解决ProcessEngineConfiguration processEngineConfiguration= ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration(); ...
2018-08-23 19:35:01 1321
原创 IE8不支持jquery , xmlhttp.open() IE8 拒绝访问
IE8不支持jquery,甚至于jquery1.4也不支持,所以ajax调用方式,如下面的方法, $(function(){ $.ajax({ type: "GET", url: "http://192.168.100.152:8005/api/querylastdate/GetByString/Conne...
2018-06-15 18:22:31 1945 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人