技术栈

linux部署jar 常见问题

qq_411708182023-11-25 20:27

1.java -jar xxx.jar no main manifest attribute, in xxx.jar

一.no main manifest attribute, in xxx.jar

在pom.xml文件中加入:

复制代码
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>

有main-class 则可以启动

上一篇:【初始前后端交互+原生Ajax+Fetch+axios+同源策略+解决跨域】
下一篇:redis持久化:RDB:和AOF
相关推荐
迎仔
11 小时前
C-算力中心网络隔离实施方法:怎么搞?
运维·网络
代码游侠
11 小时前
C语言核心概念复习——网络协议与TCP/IP
linux·运维·服务器·网络·算法
你真是饿了
11 小时前
6.库制作与原理
linux·服务器
Zach_yuan
12 小时前
深入浅出 JSONCpp
linux·服务器·网络·c++
AtoposのCX330
12 小时前
Docker运行hello-world镜像失败或超时
运维·docker
北京迅为
13 小时前
《【北京迅为】itop-3568开发板NPU使用手册》- 第 7章 使用RKNN-Toolkit-lite2
linux·人工智能·嵌入式·npu
Dragon~Snow
13 小时前
Linux Centos9 安装 Elasticsearch
linux·elasticsearch·jenkins
熊延
13 小时前
麒麟V10系统安装部署elasticsearch
linux·运维·服务器·elasticsearch·搜索引擎·全文检索
Jia ming
13 小时前
跟踪器与事件使用举例
linux·事件·跟踪器
生活很暖很治愈
13 小时前
Linux——基础IO&软硬链接
linux·ubuntu
热门推荐
01GitHub 镜像站点02Claude Code + GLM4.7 避坑指南:解决 Unable to connect to Anthropic services03openclaw配置教程(linux+局域网ollama)04UV安装并设置国内源05Linux下V2Ray安装配置指南06AI 规范驱动开发“三剑客”深度对比:Spec-Kit、Kiro 与 OpenSpec 实战指南07openclaw使用nginx反代部署过程 与disconnected (1008): pairing required解决08Claude Code Skills 实用使用手册09在Trae中使用Pencil MCP10Vue-skills的中文文档