Linux上安装软件遇到的问题:
1Tomcat部分文件缺失
要下载/bin目录下的,/src目录下的是源码
2 java -jar 运行项目报错
情况一:
如果用maven打包,不会把用到的依赖加入进去,因此使用JDK以外的库,需要提前在本地安装。
情况二
如果用spring打包,但是执行操作后报错:
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.4.5:repackage (default-cli) on project project: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.4.5:repackage failed: Source file must not be null
解决方法:使用maven命令执行打包mvn clean package
springboot打包插件在pom文件里的配置是:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.3.0.RELEASE</version>
</plugin>
运行.sh文件因为Windows上编写使用\r 和 \n报错:
执行命令
sed -i 's/\r$//' xxxxxxx.sh
后再运行
666

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



