![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
个人
个人
hai-chu
错把陈醋当成墨,写尽半生都是酸
展开
-
ApplicationContextUtil bean工厂辅助类
@Component public class ApplicationContextUtil implements ApplicationContextAware { private static ApplicationContext applicationContext; /** * @param applicationContext * @throws BeansException */ @Override public void se.原创 2022-03-04 13:40:29 · 378 阅读 · 0 评论 -
java.lang.IllegalStateException: Cannot forward after response has been committed
java.lang.IllegalStateException: Cannot forward after response has been committed 解决方法如下: 由于response多次提交或者是由于有页面显示后仍然含请求转向产生的,就是说程序在return之前就已经执行了跳转或者执行过response,之后遇到return的话,程序想再次执行跳转,也就是重定向,这时功能也许会实现了,但是控制台会报错,所以控制好跳转是很重要的。 解决方法:rd.forward(reques...原创 2020-07-04 11:19:00 · 1501 阅读 · 0 评论