把依赖的Jar包复制到lib目录中
mvn dependency:copy-dependencies -DoutputDirectory=lib
运行:mvn exec:java -Dexec.mainClass="SimpleApp"
### Windows中查看那个进程占用端口 | |
`netstat -aon|findstr "80"` | |
`tasklist|findstr "1648"` |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:p="http://www.springframework.org/schema/p" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:mvc="http://www.springframework.org/schema/mvc" | |
xsi:schemaLocation=" | |
http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://www.springframework.org/schema/context | |
http://www.springframework.org/schema/context/spring-context.xsd |
把依赖的Jar包复制到lib目录中
mvn dependency:copy-dependencies -DoutputDirectory=lib
运行:mvn exec:java -Dexec.mainClass="SimpleApp"
src/main/proto目录下存放定义文件 | |
先package一次,会根据定义生成相应文件,可以在代码中引用 | |
## pom.xml 内容类似下面 | |
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> |
## 调用IDEA反编译整个Jar包 | |
IDEA的反编译插件<https://github.com/JetBrains/intellij-community/tree/master/plugins/java-decompiler>没有在界面上没有提供一次反编译整个Jar包的功能,但可以通过他在命令行中调用他的工具类来反编译整个Jar包调用IDEA的安装目录的"plugins\java-decompiler\lib\java-decompiler.jar"的*org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler*便可实现. | |
例如`java -cp "C:\Program Files\JetBrains\IntelliJ IDEA 2017.3\plugins\java-decompiler\lib\java-decompiler.jar" org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler -dgs=true dacp-dp-executor-steps-guizhou-0.0.1-SNAPSHOT.jar mysrc` | |
mysrc目录下会有生成的整个Jar包的源文件(打成了jar,用zip解压即可)其实是用fernflower<https://github.com/fesh0r/fernflower>实现的 |