摘要:
我的idea版本是2019.1.4,下载的tomcat是9.0.50,这个idea版本用不了tomcat10,版本不匹配,可以下最新的2021.2。1、先安装tomcat,默认端口8080,还有一个-1要改掉,我写的是默认端口是8888 那个-1我改成了99992、配置tomcat的环境变量,新建变
阅读全文
posted @ 2021-08-05 13:44
邢帅杰
阅读(824)
推荐(0)
摘要:
1、代码 package com.jay.controller; import com.jay.pojo.User; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; impo
阅读全文
posted @ 2021-08-04 16:55
邢帅杰
阅读(260)
推荐(0)
摘要:
1、pom.xml引入包 <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </depende
阅读全文
posted @ 2021-08-04 12:13
邢帅杰
阅读(44)
推荐(0)
摘要:
A child container failed during start,我遇到的原因是引用javax.servlet-api的时候没有加scope <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-ap
阅读全文
posted @ 2021-08-04 10:59
邢帅杰
阅读(168)
推荐(0)
摘要:
参考文档:http://mybatis.org/spring/zh/index.html1、引入包 <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</v
阅读全文
posted @ 2021-07-30 15:49
邢帅杰
阅读(72)
推荐(0)
摘要:
方式一,实现MethodBeforeAdvice,AfterReturningAdvice接口,在applicationContext.xml中注入bean,创建切入点,配置环绕增加,xml需要引入aop约束。public void before(Method method, Object[] ob
阅读全文
posted @ 2021-07-30 11:32
邢帅杰
阅读(230)
推荐(0)
摘要:
文档:https://www.jianshu.com/p/b3da0c8a22fehttp://c.biancheng.net/spring/first-spring.html引入包 <!-- https://mvnrepository.com/artifact/org.springframewor
阅读全文
posted @ 2021-07-27 17:36
邢帅杰
阅读(171)
推荐(0)
摘要:
官方文档:https://mybatis.org/mybatis-3/zh/getting-started.html视频:https://www.bilibili.com/video/BV1NE411Q7Nx?p=71、WMS_dao\pom.xml,要在哪个项目中使用就在哪个pom文件中加配置 <
阅读全文
posted @ 2021-07-22 10:42
邢帅杰
阅读(582)
推荐(0)
摘要:
视频:https://www.bilibili.com/video/BV12a411w7Ah?p=7下载: https://maven.apache.org/download.cgi1.下载Binary Zip Archive文件解压zip,放到没有中文和空格的目录中。E:\develop\apac
阅读全文
posted @ 2021-07-20 10:10
邢帅杰
阅读(322)
推荐(0)
摘要:
代码: package com.jay.ct; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.Iterator; import java.util.
阅读全文
posted @ 2021-07-09 14:38
邢帅杰
阅读(71)
推荐(0)