- 博客(10)
- 资源 (4)
- 收藏
- 关注
原创 springboot启动报错: NamingException: No naming context bound to this class loader
springBoot启动报错:NamingException: No naming context bound to this class loader还有个StringManager classNotFound的错误错误原因:项目启动时引入了多个tomcat解决方案:mybatis-spring-boot-starter中直接去掉tomcat-jdbc ...
2019-10-08 15:48:24
1119
原创 JsonMappingException: Can not construct instance of java.util.Date from String value
错误信息:org.springframework.integration.MessageHandlingException: org.codehaus.jackson.map.JsonMappingException: Can not construct instance of java.util.Date from String value '2019-09-19 00:01:00':n...
2019-09-19 16:11:25
1649
1
原创 Excel分列小技巧
excel在分列的时候很好用,但由于不同的字段类型很可能不同,导致一些类似订单号等长数字类型的字段会被excel自动转换成科学计数法。以下方法可解决:在分列时,是可以独立设置每个字段的类型的。示例:1、刚进去时默认第一列,我们设置成文本。2、然后选择第二列,同样设置成文本。3、同样分别设置其他字段。4、点击完成,问题解决。...
2019-08-14 11:22:30
451
原创 Consider defining a bean of type 'java.lang.String' in your configuration
Consider defining a bean of type 'java.lang.String' in your configuration总结了网上的几种解决方案:1、多余的@autowired2、待实例化的类里必须有默认的构造方法(即没有参数的那种)Consider defining a bean of type 'XXXX' in your configur...
2019-04-03 16:33:20
23833
13
原创 元素 'ref' 中不允许出现属性 'local'
错误信息如下:org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [spring/quartzContext.xml]Offending...
2019-04-03 15:11:45
597
原创 mybatis generator :TemporalAccessor找不到
提示TemporalAccessor找不到,因为TemporalAccessor是jdk1.8才有的接口,mybatis generator的1.3.7版本需要jdk1.8的支持。解决方案:安装jdk1.8即可解决。有时项目要求jdk1.7,或者eclipse版本过低,不支持jdk1.8,则可以在eclipse初始化的配置文件中指定jdk版本。可网上搜索配置方法,网上一大堆。...
2019-04-01 16:12:49
501
原创 Parameter 'record' not found 解决方案
mybatis generator 自动生成表结构对象时,可能由于我的配置有问题,或导入的jar有问题,导致生成的mapper.java对象中存在两个param的注解导入,文件报错。解决办法:把spring-content.jar中的param删除,只需要入mybatis.jar中的param,问题解决。根因待跟踪。...
2019-04-01 16:06:54
1930
原创 Cannot change version of project facet Dynamic Web Module to 3.0.解决方案
eclipse+maven,由于项目组用的tomcat7,不支持Web Module 3.1,但是每次maven update project时都会自动把org.eclipse.wst.common.project.facet.core.xml中的<installed facet="jst.web" version="3.0"/> version值由3.0变为3.1,导致不能把项目添加...
2019-04-01 15:15:37
177
原创 python问题随记
1、访问URL 2.x:导入urllib,访问urllib.urlopen(url) 3.x:导入urllib.request,访问urllib.request.urlopen(url) 否则会报错: AttributeError: module ‘urllib’ has no attribute ‘urlopen’ 2、读取html 正则表达式匹
2017-10-16 17:40:45
211
原创 SimpleDateFormat问题随记
以下内容仅做记录。import java.text.ParseException;public class TestFormat { /** * 是否有效的日期 * * @param dateStr * @param pattern * @return */ public static boolean i
2016-05-19 10:06:45
337
Splunk-6.2.0-zh_CN-SearchReference 中文版
2017-12-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人