通过idea2015打包生成jar包,通过java -jar xx.jar运行
File-->Project Structure-->Project Settings-->Artifacts
新增JAR-->From modules with dependencies
选择Main Class
Meta-INF/MANIFEST.MF位置必须在..src/main/resources目录下
ok即可
通过idea2015打包生成jar包,通过java -jar xx.jar运行
File-->Project Structure-->Project Settings-->Artifacts
新增JAR-->From modules with dependencies
选择Main Class
Meta-INF/MANIFEST.MF位置必须在..src/main/resources目录下
ok即可