单体架构demo

idea 新建maven项目

1、外层pom.xml 2、jar 包pom.xml 3、主要pom.xml

复制代码
这个打包插件放在有main 启动模块中
<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

Unable to find main class 未发现主类。因为打的jar 包不需要主类。这个在外出pom 移动到 主模块中。在进行打包。

相关推荐
胡斌附体31 分钟前
微服务调试问题总结
java·微服务·架构·调试·本地·夸微服务联调
bing_15840 分钟前
Spring MVC HttpMessageConverter 的作用是什么?
java·spring·mvc
笨蛋不要掉眼泪1 小时前
SpringAOP
java·数据库·spring·log4j
互联网搬砖老肖1 小时前
Web 架构之状态码全解
前端·架构
oioihoii1 小时前
C++23 新增的查找算法详解:ranges::find_last 系列函数
java·算法·c++23
酷炫码神1 小时前
C#数据类型
java·服务器·c#
一只码代码的章鱼2 小时前
Spring 的 异常管理的相关注解@ControllerAdvice 和@ExceptionHandler
java·后端·spring
zc.z2 小时前
微服务如何实现服务的高并发
数据库·微服务·架构
why1512 小时前
微服务商城(1)开篇、服务划分
微服务·云原生·架构
qqxhb2 小时前
零基础学Java——第十一章:实战项目 - 微服务入门
java·开发语言·spring cloud·微服务