10 2021 档案
摘要:详情见 官方文档 目录结构 供参考 Maven依赖 <!-- mybatis-generator--> <!-- https://mvnrepository.com/artifact/org.mybatis.generator/mybatis-generator-core --> <dependen
阅读全文
摘要:官方文档: http://mybatis.org/ehcache-cache/ 1. 引入依赖 或 Maven <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache-core</artifactId> <version>
阅读全文
摘要:结构 更新:+ mybatis plus maven依赖 spring相关 servlet和jsp mybatis相关 mysql驱动和c3p0连接池 junit4和jstl <dependencies> <!--spring相关--> <dependency> <groupId>org.sprin
阅读全文
摘要:**错误原因:**mapper文件不匹配 检查 mapper 文件有没有写错 检查 mapper 的导入配置,注意不能跨包导入 mapper 检查 target/classes 里有没有生成对应的 mapper 文件,如果没有,解决办法如下 在pom.xml中加入以下配置,并clean后重新编译 <
阅读全文
摘要:项目构建命令 在pom.xml所在目录内运行 mvn compile #编译 mvn clean #清理 mvn test #测试 mvn package #打包 mvn install #安装到本地仓库 tomcat 插件 <build> <plugins> <plugin> <groupId>o
阅读全文
摘要:打开maven配置文件(maven安装目录下的 conf/settings.xml) 将以下代码作为 <mirrors> 的子标签 <mirror> <id>aliyunmaven</id> <mirrorOf>*</mirrorOf> <name>阿里云公共仓库</name> <url>https
阅读全文
摘要:maven修改本地仓库位置 打开maven安装目录下的 conf/settings.xml 文件,将以下代码作为 <settings> 的子标签 标签内容即为自定义本地仓库的位置 <localRepository>目录</localRepository> 图片示例:
阅读全文
摘要:去官网下载Maven https://maven.apache.org/ 配置环境变量 准备 将下载的包解压,进入其根目录,如下: ...\apache-maven-3.8.3 复制目录后进入环境变量配置界面 配置MAVEN_HOME 系统变量中新建MAVEN_HOME,值为上面的目录 图片示例:
阅读全文
摘要:配置 添加maven依赖 <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.2.0</version> </dependency> 在mybatis
阅读全文