阅读背景:

spring mvc3.2启动分析

来源:互联网 

1,GenericServlet
    public void init(ServletConfig config) throws ServletException {
	this.config = config;
	this.init();
    }

2,HttpServletBean
	public final void init() throws ServletException {
		if (logger.isDebugEnabled()) {
			logger.debug("Initializing servlet "" + getServletName() + """);
		}

		// Set bean properties from init parameters.
		try {
			PropertyValues pvs = new ServletConfigPropertyValues(getServletConfig(), this.requiredProperties);
			BeanWrapper bw = PropertyAccessorFactory.forBeanPropertyAccess(this);
			ResourceLoader resourceLoader = new ServletContextResourceLoader(getServletContext());
			bw.registerCustomEditor(Resource.class, new ResourceEditor(resourceLoader, getEnvironment()));
			initBeanWrapper(bw);
			bw.setPropertyValues(pvs, true);
		}
		catch (BeansException ex) {
			logger.error("Failed to set bean properties on servlet "" + getServletName() + """, ex);
			throw ex;
		}

		// Let subclasses do whatever initialization they like.
		initServletBean();
1,GenericServlet
    public void init(ServletConfi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: