Java jar启动不乱码的指令
java -Dfile.encoding=utf-8 -jar test.jar
java远程Debug Jar包
java -Xdebug -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=y -jar test.jar
获取resource下的静态文件
ClassPathResource resource = new ClassPathResource("/pdf/test.txt");
InputStream in = resource.getInputStream();
jar运行内存溢出
加大启动内存
java -Xmx1G -Xms1G -jar base-admin.jar