# spring-cloud
**Repository Path**: xuweizhi/spring-cloud
## Basic Information
- **Project Name**: spring-cloud
- **Description**: No description available
- **Primary Language**: Java
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2019-07-28
- **Last Updated**: 2023-11-16
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Spring Starter 遇到的坑
场景:SpringBoot Starter 打包一直失败,尝试网上若干方法后,不见成功。
原因:pom.xml 继承了 SpringBoot Parent ,因此每次打包都是可执行的包,然后 stater 没有主类打包失败。
解决方案:
```xml
org.springframework.boot
spring-boot-starter-parent
2.1.7.RELEASE
org.springframework.boot
spring-boot-dependencies
${springboot.version}
pom
import
org.springframework.cloud
spring-cloud-dependencies
${spring-cloud.version}
pom
import
```
第一个坑解决了,第二个坑聚合工程必须 install 的坑,根据提示 install
第三个坑,项目打包后启动无法发现主类清单
```xml
org.springframework.boot
spring-boot-maven-plugin
repackage
src/main/java
**/*.xml
```
# 打印汇编信息
下载后放入对应的 jre 文件下
链接: https://pan.baidu.com/s/1Nmd-AXzVC0fICNqGEHePFw 提取码: kbk5
```
-XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly
```
# MysqlQuery.g4 用法
