SpringBoot+Angular Template Project
Before installing and using this product, you should have installed the following software and configure the corresponding environment variables:
You can download this app source on GitHub.
First you should perform an init once to install the dependencies needed for your project, but only if you need it on the first boot.
gradlew[.bat] build
After each start, you only need to run the following command to start the application:
gradlew[.bat] server
When you modify the source code, you can execute the following command to compile the source code:
gradlew[.bat] build
If you only modified the java code, you can also compile the Java source code and launch the application by executing the following command:
gradlew[.bat] classes
Of course, our Angular code also supports hot deployment. Execute the following command and refresh the browser after successful compilation to apply the modified code:
gradlew[.bat] watch
You can use the following command to clean up the program output file:
gradlew[.bat] clean
You can use the following command to clean up the program output file(contains node dependencies):
gradlew[.bat] cleanAll
You can also rebuild external code (node dependencies) with the following command:
gradlew[.bat] cleanAll build
You need config follow property to angboot/client/server/build/config/angboot.properties
For Dubbo common configuration
# Dubbo app name dubbo.app.name=angboot-client # Dubbo registry address dubbo.registry.address=zookeeper://127.0.0.1:2181 # Optional. Dubbo registry username dubbo.registry.username=xxx # Optional. Dubbo registry password dubbo.registry.password=xxx
# cas enable
angboot.cas.enabled=true
# cas client configuration
angboot.cas.client.casClientUrlPrefix=http://localhost
angboot.cas.client.service=http://localhost/login/cas
angboot.cas.client.sendRenew=false
angboot.cas.client.filterProcessesUrl=/login/cas
angboot.cas.client.logoutUrl=/logout
# cas server configuration
angboot.cas.server.casServerUrlPrefix=http://localhost:10080/cas
angboot.cas.server.loginUrl=http://localhost:10080/cas/login
angboot.cas.server.logoutUrl=http://localhost:10080/cas/logout
RPC using Dubbo framework, so your app should based on Dubbo for custom authority.
# Enable angboot.outer.authority.enabled=true
we provide a simple outer authority application. you can find it on GitHub: angboot-providers/authority
angboot.https.enabled=true
angboot.https.port=8443
angboot.https.ssl.key.store.path=angboot.keystore
angboot.https.ssl.key.alias=angboot
angboot.https.ssl.key.store.pwd=angboot
angboot.https.ssl.key.store.type=JKS
Notice:
angboot.https.ssl.key.store.path
must based onconfig/ssl/
folder