随笔分类 - Spring
摘要:引入依赖 success.jsp页面 web.xml配置文件 servlet层
阅读全文
摘要:1.导入依赖(jar包) <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>4.3.9.RELEASE</version></dependency> <!-
阅读全文
摘要:在此就以查询所有学生信息为例:实体类 public class Student { private Integer id; private String name; private Integer age; public Integer getId() { return id; } public v
阅读全文
摘要:Spring入门案例的步骤; 1.找依赖 spring-beans.4.2.0.jar 附带了core核心 和commons-logging spring-context.4.2.0.jar spring-expression.4.2.0.jar spring-aoplple.4.2.0.jar s
阅读全文
Junit测试出现异常:Exception in thread "main" java.lang.NoSuchMethodError: org.junit.platform.commons.util.
摘要:在进行单元测试时,测试出现异常 pom.xml依赖如下 通过pom.xml发现,我希望使用JUnit4.12运行测试用例,我们查看pom.xml发现junit-jupiter-api这个依赖会导致这个错误。 解决方案 1、删除pom.xml中org.junit.jupiter依赖 2、Reimpor
阅读全文
摘要:接口:/** * 接口 * Created by Administrator on 2017/10/7. */public interface ISomeService { public void SomeService() throws Exception;}实现类: /** * 接口的实现类 * Created by Administrator on 2017/10/7. */publi...
阅读全文

浙公网安备 33010602011771号