ruoyi-nbcio移植过程中的一些问题记录

发布于:2023-09-16 ⋅ 阅读:(76) ⋅ 点赞:(0)

1、打包去掉测试出现

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test 错误

在pom.xml里增加下面 去掉测试

<!--添加配置跳过测试-->

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-surefire-plugin</artifactId>

<version>2.22.2</version>

<configuration>

<skipTests>true</skipTests>

</configuration>

</plugin>

<!--添加配置跳过测试-->

2、运行会出现下面的问题,好像被锁住了

Waiting for changelog lock

查询确实出现了被锁的问题,删除这行或更新locked状态都可以去掉

3、发布到生产后,前端登录页报错,感觉访问不了后端接口

主要修改

.env.production文件中的下面

VUE_APP_BASE_API = 'http://122.227.135.243:9060'

4、不过在一个机器上同时运行两个tomcat好像有问题,提示下面错误,在logs/catalina.out日志报错如下:

需要修改tomcat配置server.xml文件里的端口,因为相同端口冲突了

<!-- modify by nbacheng from 8005 to 8007 -->
<Server port="8007" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
  <!-- Security listener. Documentation at /docs/config/listeners.html
  <Listener className="org.apache.catalina.security.SecurityListener" />
 <!-- Define an AJP 1.3 Connector on port 8009  modify by nbacheng from 8009 to 8006-->
    <Connector port="8006" protocol="AJP/1.3" redirectPort="8443" />

本文含有隐藏内容,请 开通VIP 后查看