随笔分类 - spring
摘要:String conferName = new RequestContext(request).getMessage("base.conference.name");
阅读全文
摘要:package com.xxxxx.util; import java.lang.reflect.Field; import javax.naming.NamingException; import org.springframework.aop.framework.ProxyFactory; im
阅读全文
摘要:1、jsp文件引入 <script type="text/javascript"> var i18n=new Object(); i18n['day']='<spring:message code="homePage.day"/>'; i18n['week']='<spring:message co
阅读全文
摘要:<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> <property name="basename" value="config.property.i18
阅读全文
摘要:一、综述 近日,VMware Tanzu发布安全公告,公布了一个存在于Spring Framework中的反射型文件下载(Reflected File Download,RFD)漏洞CVE-2020-5421。CVE-2020-5421 可通过jsessionid路径参数,绕过防御RFD攻击的保护。
阅读全文
摘要:背景: 最近升级Spring Framework相关版本,从4.0.2到4.3.29。 spring4.0.2是org.springframework.http.converter.json.MappingJacksonHttpMessageConverter spring4.3.29是org.sp
阅读全文
摘要:我们都知道,Spring可以@Value的方式读取properties中的值,只需要在配置文件中配置org.springframework.beans.factory.config.PropertyPlaceholderConfigurer <bean id="propertyConfigurer"
阅读全文
摘要:原因分析见:https://www.cnblogs.com/pjjlt/p/10926398.html 解决办法:catch中手动回滚。 try { }catch (Exception e){ //手动回滚 TransactionAspectSupport.currentTransactionSta
阅读全文
摘要:@RestController注解,相当于@Controller+@ResponseBody两个注解的结合,返回json数据不需要在方法前面加@ResponseBody注解了,但使用@RestController这个注解,就不能返回jsp,html页面,视图解析器无法解析jsp,html页面。
阅读全文
摘要:TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
阅读全文
摘要:package com.xxxxx.config.intercepters; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servl
阅读全文
摘要:使用@ModelAttribute注解的实体类接收前端发来的数据格式需要为"x-www-form-urlencoded", @RequestBody注解的实体类接收前端的数据格式为JSON(application/json)格式。 (若是使用@ModelAttribute接收application/
阅读全文
摘要:切面打印日志时,参数序列化异常异常信息:java.lang.IllegalStateException: It is illegal to call this method if the current request is not in asynchronous mode (i.e. isAsyn
阅读全文
摘要:https://blog.csdn.net/qq_22651103/article/details/88727712
阅读全文
摘要:https://blog.csdn.net/weixin_40423597/article/details/80643990
阅读全文

浙公网安备 33010602011771号