- 博客(19)
- 资源 (3)
- 收藏
- 关注
原创 Unable to process parts as no multi-part configuration has been provided
由于服务器迁移,jdk由原来的1.8升级到17,随着而来的springboot由原来的1.4.7.RELEASE升级到2.7.18,使用了spring security。
2025-03-18 17:12:00
1246
原创 Cannot invoke “com.itextpdf.io.font.otf.Glyph.getWidth()“ because “glyph“ is null
系统环境 springboot + itextpdf 9,开发环境正常,打包成jar运行报错。上面的报错,下面的没有问题。网上有一些解决的方法,但症结不一样。最终错误发生在一个小小的符号上。
2025-02-13 10:21:32
398
原创 tomcat同时可访问http和https,并区分访问资源
1、测试环境:win10,tomcat7.0.72,jdk8 2、实现目标:实现静态文件http访问,api的https访问(本测试只是通过目录来区别的,在spring中,可以是访问路径以api开头的url) 3、配置: 3.1、开放tomcat两个端口,一个供http使用的7080,和一个供https使用的7433端口 tomcat中的server.xml配置如下: <Conne...
2019-05-09 11:23:28
1822
原创 easyui datagrid xxs
easyui单元格中如果出现alter(1);会被执行,如果避免呢首先找到jquery.easyui.min.js,我的版本是jQuery EasyUI 1.5.1然后找到datagrid 的 renderRow方法,在11133行,在11173行增加if(_829){_829 = _829.replace(//g, ">");}这里只是替换号,可根据自己的实际情况处理
2017-11-29 14:34:10
1181
原创 maven quartz
pom.xml jdom jdom 1.1 org.quartz-scheduler quartz 2.2.3 quartz.properties 放到resources,没有此文件也可运行 #指定调度器的名称 org.quartz.scheduler.instanceName = MySch
2016-10-10 15:01:17
1773
原创 Maven Log4j2 Marker 不同类型的日志写入不同的文件
maven pom.xml org.apache.logging.log4j log4j-api 2.7 org.apache.logging.log4j log4j-core 2.7 commons-logging
2016-10-10 14:54:16
9762
1
原创 eclipse maven run as on server src/main
maven 项目,run as on server(eclipse plugin)时发现工程的classes下是main目录下的内容,不是编译的class。 右键项目,修改Depolyment Assemebly,如下图
2016-06-13 17:10:08
512
原创 springboot tomcat8 duplicate springSecurityFilterChain and increasing the maximum size of the cache
1、springSecurityFilterChain'. Check to ensure the Filter is only configured once. 在pringboot中不能同时存在 public class MessageSecurityWebApplicationInitializer extends AbstractSecurityWebApplicationInitia
2016-06-03 22:57:04
2753
原创 js time
var current = new Date(); var d1 = new Date(current.getYear(),1,1,7,30,0);//new Date(year,month,day,hour,minute,second) var d2 = new Date(current.getYear(),1,1,0,0,0); var time= d1.getTime()-d2.get
2016-05-24 09:20:41
1297
原创 spring boot security csrf ignore
在一个工程中使用了spring boot security csrf , 工程中有一部分是api,通过url进行调用,并且要求使用post请求 那么麻烦来了,使用了csrf,调用api的请求被拒了,原因就是没有csrf,认为session过期了 怎么绕过去呢 public class SecurityConfig extends WebSecurityConfigurerAdapter{
2016-05-20 16:35:51
3365
翻译 apache fluent 乱码
http://stackoverflow.com/questions/17990684/how-to-use-the-fluent-api-of-apache-httpclient-to-read-utf-8-coded-website 服务器返回的信息没有明确指定内容的编码集,因此HttpClient强制使用ISO-8859-1对内容进行编码,而不是UTF-8。 不兴的是只能使用客户化的re
2016-05-06 15:12:44
2812
2
原创 jackson byte[]
有如下类 public class Result{ int code; Object data; public Result(int code,Object data){} } byte[] data = 从file转过来的 String sr = new ObjectMapper().writeValueAsString(new Result(1,data)); Result
2016-05-04 14:33:31
1833
原创 sonar
1、到http://www.sonarqube.org/downloads/下载SonarQube,当前版本5.4 2、下载SonarQube Scanners 3、http://docs.sonarqube.org/display/SONAR/Documentation/ 阅读getting started中的requirements和Installing SonarQube 4、安装
2016-04-28 11:19:17
681
原创 struts spring integration and test using junit4
1、integration 创建java dynamic web project 加入的jar有commons-fileupload-1.2,commons-io-2.2,commons-lang3-3.1,commons-logging-1.1.3,freemarker-2.3.19,hamcrest-core-1.3,javassist-3.11.0.GA,junit-4.12,ognl-
2016-04-25 13:43:49
605
原创 Junit4
SimpleJunit4 Test public class SimpleJunit { @Before public void setUp(){ //such as initialize db connection } @Test public void test0(){ assertEquals(1,1);
2016-04-25 13:35:59
537
原创 hibernate 3.2.3 setParameterList bug
最近的项目中使用了hibernate naming parameter list,代码如下 Query query1 = session.createQuery("from OurProduct where createOrgCode in(:createOrgCode) and updateOrgCode in(:createOrgCode1)"); query1.setParameterL
2016-03-23 13:17:44
985
原创 oracle在job中调用带有参数的存储过程
<br />在what如下<br />declare<br />v_in_param1 varchar2(1000);<br />v_out_param2 varchar2(1000);<br />begin<br /> proc_job_test(v_in_param1,v_out_param2);<br />end;<br />这样就可以调用带有参数的存储过程了。
2011-05-21 11:17:00
2351
pyenv-win 3.1.1
2025-03-21
Axure chrome plugin 0.7.0-0
2025-03-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅