The website for TensorAnalyzor
1.准备gradle
的属性配置文件gradle.properties
copy gradle-sample.properties gradle.properties
2.自行修改gradle.properties中的内容,设置激活的配置项,如dev
# 激活的配置文件
systemProp.spring.profiles.active = dev
3.准备激活的编译参数文件
cd src/main/resources
copy application.yml application-dev.yml
4.自行修改application-dev.yml
中的内容
# a)安装前端依赖项
cd src/main/resources/static
yarn config set nodeLinker node-modules # 仅需设置一次
yarn config set npmRegistryServer https://registry.npmmirror.com # 可选 配置使用中国区镜像,仅需设置一次
yarn --immutable
# b)编译java工程
cd ../../../..
gradle
# c)启动
gradle bootRun
# d) 可选.启动前端调试模式
cd src/main/resources/static
yarn dev