Error running 'Application': Command line is too long. Shorten command line for Application or also for Spring Boot default configuration? (2 minutes ago)
解决1:编辑运行环境 ,每运行一个application都需要修改
解决2:修改.idea的workspace.xml,一个项目仅需修改一次了
在<component name="PropertiesComponent">下新增
<property name="dynamic.classpath" value="true" />
java.lang.NoSuchMethodError: net.sf.jsqlparser.statement.select.PlainSelect.getGroupByColumnReferences()Ljava/util/List;
原因:jar冲突或缺少
解决:exclusion冲突的包,或添加
<exclusion>
<groupId>com.github.jsqlparser</groupId>
<artifactId>jsqlparser</artifactId>
</exclusion>
docker 运行镜像显示 no main manifest attribute, in /xxx.jar
解决:在build中添加打包插件
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<!--将依赖都打包到jar中-->
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
其他类似的找不到xml中的配置信息,添加:
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
linux启动jar项目不产生nohup.out:
启动命令后添加>/dev/null
Method breakpoints may dramatically slow down debugging
view breakpoints查看是否开启了java method breakpoints,取消即可