1:解决onlinemall-product微服务中entity包中类的错误
此错误需要引入mybatis-plus和lombok依赖
<!--mybatis-plus-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.2.0</version>
</dependency>
<!--lombok-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.8</version>
</dependency>
2:解决onlinemall-product微服务中service包中类的错误
需要引入工具类PageUtils 这个工具类可以在renren-fast工程中找到
1、在onlinemall-common工程中创建com.applesnt.common.utils包
2、把renren-fast工程中(io\renren\common\utils)的PageUtils文件拷贝到onlinemall-common工程的com.applesnt.common.utils包下面
3:解决onlinemall-product微服务中impl包中类的错误
需要引入工具类Query 这个工具类可以在renren-fast工程中找到
把renren-fast工程中(io\renren\common\utils)的Query 文件拷贝到onlinemall-common工程的com.applesnt.common.utils包下面
4:解决onlinemall-product微服务中controller包中类的错误
需要引入工具类R 这个工具类可以在renren-fast工程中找到
把renren-fast工程中(io\renren\common\utils)的R 文件拷贝到onlinemall-common工程的com.applesnt.common.utils包下面
5:解决onlinemall-common中工具类R的错误
此错误需要引入httpcore依赖
<!--httpcore-->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.12</version>
</dependency>
6:解决onlinemall-common中工具类Query的错误
错误一
此错误需要引入commons-lang依赖
<!--commons-lang-->
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
错误二
需要引入工具类SQLFilter 这个工具类可以在renren-fast工程中找到
1、在onlinemall-common工程中创建com.applesnt.common.xss包
2、把renren-fast工程中(io.renren.common.xss)的SQLFilter文件拷贝到onlinemall-common工程的com.applesnt.common.xss包下面
3、修改onlinemall-common工程中Query类中的SQLFilter引入路径
错误三
需要引入工具类Constant 这个工具类可以在renren-fast工程中找到
把renren-fast工程中(io\renren\common\utils)的Constant 文件拷贝到onlinemall-common工程的com.applesnt.common.utils包下面
错误四
在pom文件中添加一下配置
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
6:解决onlinemall-common中工具类SQLFilter的错误
需要引入工具类RRException 这个工具类可以在renren-fast工程中找到
1、在onlinemall-common工程中创建com.applesnt.common.exception包
2、把renren-fast工程中(io.renren.common.exception)的RRException文件拷贝到onlinemall-common工程的com.applesnt.common.exception包下面
3、修改onlinemall-common工程中SQLFilter类中的RRException引入路径
本文暂时没有评论,来添加一个吧(●'◡'●)