摘要:
网上很多说法,诸如:contextConfigLocation classpath:spring-context.xml WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext(getServletContext());之类的,尝试了之后报错:No WebApplicationContext found: no ContextLoaderListener registered?最后的解决方法是:1 this.initWebApplicati... 阅读全文
摘要:
很想吐槽的一个东西尝试了spring的authentication,使用org.acegisecurity.userdetails.jdbc.JdbcDaoImpl的authenticationDao代码如下: 1 package org.hawklithm.acegi; 2 3 import org.acegisecurity.Authentication; 4 import org.acegisecurity.providers.ProviderManager; 5 import org.acegisecurity.providers.UsernamePasswordAuthentica. 阅读全文