本地构建jjwt项目

1.构建项目,通过以下命令

命令1:git clone https://github.com/eugenp/tutorials.git

描述:从github上把代码拉到本地

截图:

1-1-1.png

1-1-2.png

命令2:cd tutorials/jjwt

描述:进入到jjwt目录

截图:

1-2-1.png

1-2-2.png

编辑pom.xml文件,在project元素中添加以下代码

<build>

        <plugins>

            <plugin>

                <groupId>org.springframework.boot</groupId>

                <artifactId>spring-boot-maven-plugin</artifactId>

                <executions>

                    <execution>

                        <goals>

                            <goal>repackage</goal>

                        </goals>

                    </execution>

                </executions>

            </plugin>

        </plugins>

    </build>


命令3:mvn clean install

描述:通过mvn进行生成jar包

截图:

1-3-1.png

1-3-2.png

1-3-3.png

2.启动应用,通过以下命令

命令1:cd target

描述:进入生成的jar包目录

截图:

2-1-1.png

命令2:java -jar jjwt-0.0.1-SNAPSHOT.jar

描述:打包,编辑,运行

截图:

2-1-2.png

QQ截图20181212091016.png

猜你喜欢

转载自blog.51cto.com/suyanzhu/2329213
今日推荐