IDEA deploy and import guns

1. Use idea to open -> guns-parent
2. Modify data source:
target: guns-admin\src\main\resources\application.yml
Modify content:
2.1 spring.datasource
2.2 guns.flowable.datasource
2.3 guns.flowable. muti-datasource


3. Start guns:
3.1 Run the java file [spring boot]
Run guns-admin\src\main\java\com\stylefeng\guns\GunsApplication.java

3.2 Run the jar file directly
3.2.1 Package and deploy guns
3.2 .1.1 Find guns-parent
3.2.1.2 Run the command
mvn clean package -Dmaven.test.skip=true
3.2.1.3 Copy the jar package to the running directory
3.2.1.4 Run the command
java -jar guns-admin-1.0.0-SNAPSHOT.jar

3.3 Run the war package
Preparation: Modify the packaging method of the pom file in the guns-admin

3.3.1 Package and deploy the guns
3.3.1.1 Find the guns-parent
3.3.1.2 Run the command
mvn clean package -Dmaven.test.skip=true
3.3.1.3 Copy the war package to the webapps of the web server tomcat
3.3.1.4 Change the name of the war package to ROOT.war
3.3.1.5 Start tomcat
%TOMCAT_HOME%/bin/startup.bat


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324516714&siteId=291194637