Skip to content
Kohei Tamura edited this page Sep 13, 2017 · 9 revisions

To develop on STS:

mvn clean eclipse:eclipse

To build war and runnable/deployable war:

mvn clean package

To start by mvn command:

mvn clean spring-boot:run

To start by runnable war:

java -jar ROOT.war

w/ JVM options:

-Xmx256m -XX:MaxMetaspaceSize=64m -XX:MaxDirectMemorySize=90m -XX:+UseSerialGC -Xloggc:logs/gc.log -Xloggc:logs/gc_%p_%t.log -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=10M -XX:GCTimeLimit=15 -XX:GCHeapFreeLimit=50 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=logs/ -XX:ErrorFile=logs/hs_err_pid%p.log -XX:NativeMemoryTracking=summary -agentlib:jdwp=transport=dt_socket,server=y,address=9009,suspend=n -Dderby.stream.error.file=logs/derby.log -Dderby.infolog.append=true -Dderby.language.logStatementText=true -Dderby.locks.deadlockTrace=true -Dderby.locks.monitor=true -Dderby.storage.rowLocking=true -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7900 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -ea

To change port and start by runnable war:

java -jar ROOT.war --port=9000

To start by another container, for example Tomcat:

cp ROOT.war ${CATALINA_HOME}/webapps/
${CATALINA_HOME}/bin/startup.sh

To attach a remote debugger:

  • Connection type: Standard (Socket Listen)
  • Host: localhost
  • Port: 9009

To translate it into your language

Please translate on crowdin.com. It is very easy!

Clone this wiki locally