文章分类 - Spring
摘要:http://logging.apache.org/ log4j-x.y.z.jar private static final Logger LOG = Logger.getLogger(TsmHttpInvokerServiceExporter.class); log4j.properties h
阅读全文
摘要:表单 @Controller public class StudentController { @RequestMapping(value = "/student", method = RequestMethod.GET) public ModelAndView student() { return
阅读全文
摘要:web.xml <servlet> <servlet-name>HelloWeb</servlet-name> <servlet-class> org.springframework.web.servlet.DispatcherServlet </servlet-class> <load-on-st
阅读全文
摘要:JDBC 框架 import javax.sql.DataSource; import org.springframework.jdbc.core.JdbcTemplate; public class StudentDaoImpl implements StudentDAO { private Da
阅读全文
摘要:基于构造函数的依赖注入: <bean id="textEditor" class="com.tutorialspoint.TextEditor"> <constructor-arg ref="spellChecker"/> </bean> <bean id="spellChecker" class=
阅读全文
摘要:ApplicationContext: FileSystemXmlApplicationContext:提供XML文件的完整路径。 ClassPathXmlApplicationContext:容器会从 CLASSPATH 中搜索 bean 配置文件。 WebXmlApplicationContex
阅读全文

浙公网安备 33010602011771号