package cn.common;
import javax.annotation.PostConstruct;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;
/**
* 初始化spring bean
*
* 日期:2015年8月29日
*/
@Component
@Lazy(false)
public class InitConfigSpringBean {
@PostConstruct
public void initDemo() {
System.err.println("---set max content size");
System.setProperty("org.eclipse.jetty.server.Request.maxFormContentSize", "3000000000");
}
}
springmvc bean初始化
最新推荐文章于 2024-06-06 23:24:52 发布