摘要: 1.写controller层 package com.why.controller; import com.why.bean.Books; import com.why.service.Service; import org.springframework.beans.factory.annotat 阅读全文
posted @ 2020-09-03 14:24 why666 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-09-03 14:18 why666 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 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/ 阅读全文
posted @ 2020-09-03 13:48 why666 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 1.配置pom.xml配置文件 <dependencies> <!--Junit--> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> 阅读全文
posted @ 2020-09-03 13:30 why666 阅读(349) 评论(0) 推荐(0) 编辑