- 博客(6)
- 收藏
- 关注
原创 springboot 获取配置属性和发布war包时遇到的问题
两篇文章解决了我的问题:http://www.cnblogs.com/lfalex0831/p/9055664.htmlhttps://blog.youkuaiyun.com/qq_14853889/article/details/80026885 主要内容是:1、使用@PropertySource来获取配置文件的中属性值(注意:在使用该注解时,属性文件必须为properties文件,ya...
2019-01-27 18:26:58
332
原创 idea工具,springMVC创建遇到的问题
始终显示不能导入contextConfigLocation,网上有解决方案是少包,单我用的是maven和idea自带的springmvc框架。后来发现是jar包没有正确添加,需要右键,选择put In xxx,到左边lib文件夹中。如图:...
2019-01-24 18:35:45
228
原创 springboot httpclient遇到的问题
接口接收数据的类型有String和pojo对象类型,传参为String类型时有以下问题:1.在接口端获取到的永远是null,并且报参数名字不一致的错误(is not present)后端接口使用 CloseableHttpClient 调用接口, httpost.setEntity()传String类型到接口,查询数据库中的用户数据,接口代码如下: @ApiOperation(val...
2019-01-23 18:56:58
1508
原创 maven+ssh struts2+spring编译不成功的问题
Action配置到spring中,一直报action找不到的错误,struts2.xml中加入<constant name="struts.objectFactory" value="spring"></constant>,又会报其他各种错误:Cannot locate the chosen ObjectFactory implementation: spring 。网...
2019-01-11 14:30:21
169
原创 事务整合BeanNotOfRequiredTypeException: Bean named must be of type [] but was actually of type
org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'UserService' must be of type [com.service.impl.UserServiceImpl], but was actually of type [$Prox38] 原因1: 使用了jdk的自动...
2018-12-12 09:29:56
1175
原创 pdf转图片
Windows环境下,java语言中,icePDF、PDFbox等工具,到底哪个好用,且中文不乱码。开源下都是有乱码的,如果一定要使用并且免费的话,使用Adobe Acrobat 9 Pro第三方工具。缺点是1、服务器端需要安装此软件。2、只能使用单线程,即静态同步的方法,但使用时,可能会有转化过程缓慢的问题3.占用内存大具体用啥,需要结合自身的业务特点,看需要哪种,哪种方法的...
2018-10-10 09:13:21
208
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人