摘要:
1.写controller层 package com.why.controller; import com.why.bean.Books; import com.why.service.Service; import org.springframework.beans.factory.annotat 阅读全文
摘要:
1.配置web.xml中 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in 阅读全文
摘要:
1.配置spring-service.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/ 阅读全文
摘要:
1.配置pom.xml配置文件 <dependencies> <!--Junit--> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> 阅读全文