1、创建项目前的准备
需要准备好java的jdk1.8版本或者jdk8版本,其他版本不太清楚。
2、创建项目



Oracle驱动不要忘记,Mysql的话也可以加上,问题不大。
3、环境配置
1、不需要的包先删掉
将以下的包删掉

删完之后是这样子的

2、pom.xml的配置
<!-- https://mvnrepository.com/artifact/cn.easyproject/orai18n -->
<dependency>
<groupId>cn.easyproject</groupId>
<artifactId>orai18n</artifactId>
<version>12.1.0.2.0</version>
</dependency>
加上这段代码
4、整合mybatis plus
1、导入jar包
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
将上述代码插入此处,也可不做:

<!--mp-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.2.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<!--mp代码生成器-->
<

最低0.47元/天 解锁文章

1686

被折叠的 条评论
为什么被折叠?



