Skip to content
/ jvue Public

Next light-weight,responsive project With Docker,Vue,Vue CLI 3,webpack and Spring Boot. Spring boot和Vue的最佳实践

Notifications You must be signed in to change notification settings

terwer/jvue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue logo      Java logo      J2V8 logo

Version Version Version Java logo Maven logo License

Introduction

jvue

Next light-weight,responsive project With Vue,webpack,Spring Boot and eclipse j2v8 Script engine for server-side-rendering

Note !!!

j2v8 is not support promise on windows right now, so linux is prefered for production,windows support is on the way ...

Build setup

1、Go to webapp and run vue ssr build

cd src/main/webapp && yarn && yarn build

notice:You can run yarn dev in development mode to show vue error logs

2、Run java maven build

mvn clean package -DskipTests

compile && run cli

mvn -v && mvn compile && mvn exec:java

run && deploy

run

mvn clean spring-boot:run

deploy

Copy target/ROOT.war to ${TOMCAT_HOME}/webapps

Structure

The whole project is a Java Spring Boot Maven structure,the src/main/webapp is a complete Vue Project With webpack structure

When build finish,all files merged into target/ROOT.war

Have fun and enjoy!

Contribute

You can contribute simplely by create a pull request for me

For detailed explanation on how things work, please visit author's blog.