Initial commit: MSH System\n\n- msh_single_uniapp: Vue 2 + UniApp 前端(微信小程序/H5/App/支付宝小程序)\n- msh_crmeb_22: Spring Boot 2.2 后端(C端API/管理端/业务逻辑)\n- models-integration: AI服务集成(Coze/KieAI/腾讯ASR)\n- docs: 产品文档与设计稿
This commit is contained in:
43
models-integration/start.sh
Executable file
43
models-integration/start.sh
Executable file
@@ -0,0 +1,43 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 启动销帮帮API集成应用
|
||||
# 支持多数据库切换和HikariCP连接池
|
||||
|
||||
# 检查参数
|
||||
if [ "$1" != "postgresql" ] && [ "$1" != "mysql" ]; then
|
||||
echo "用法: ./start.sh [postgresql|mysql]"
|
||||
echo "例如: ./start.sh postgresql"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "启动销帮帮API集成应用..."
|
||||
|
||||
echo "检查Java环境..."
|
||||
if ! command -v java &> /dev/null
|
||||
then
|
||||
echo "未找到Java环境,请先安装Java 8或更高版本"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "检查Maven环境..."
|
||||
if ! command -v mvn &> /dev/null
|
||||
then
|
||||
echo "未找到Maven环境,请先安装Maven"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "编译项目..."
|
||||
mvn clean compile
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "项目编译失败"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "启动应用..."
|
||||
echo "访问Swagger UI文档: http://localhost:5080/swagger-ui.html"
|
||||
echo "多数据库测试接口: http://localhost:5080/test/database/config"
|
||||
echo "HikariCP测试接口: http://localhost:5080/test/hikaricp/connection"
|
||||
|
||||
echo "使用$1数据库启动..."
|
||||
mvn spring-boot:run -Dspring-boot.run.profiles=$1
|
||||
Reference in New Issue
Block a user