Files
mp-java/docs/run_shop_generator.sh
赵忠林 ed695bcf66 refactor(payment): 重构支付服务实现类
- 为 PaymentServiceImpl 类添加统一支付服务标识
- 在 PaymentController 中明确引用统一支付服务
2025-08-29 19:25:33 +08:00

27 lines
1019 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 设置 JAVA_HOME如果需要
# export JAVA_HOME=/path/to/java
# 构建类路径
CLASSPATH="target/test-classes:target/classes"
# 添加 Maven 依赖
MAVEN_REPO="$HOME/.m2/repository"
# 添加必要的依赖 JAR 文件
CLASSPATH="$CLASSPATH:$MAVEN_REPO/com/baomidou/mybatis-plus-generator/3.5.3/mybatis-plus-generator-3.5.3.jar"
CLASSPATH="$CLASSPATH:$MAVEN_REPO/com/baomidou/mybatis-plus-core/3.4.3.3/mybatis-plus-core-3.4.3.3.jar"
CLASSPATH="$CLASSPATH:$MAVEN_REPO/com/baomidou/mybatis-plus-annotation/3.4.3.3/mybatis-plus-annotation-3.4.3.3.jar"
CLASSPATH="$CLASSPATH:$MAVEN_REPO/com/ibeetl/beetl/3.15.10.RELEASE/beetl-3.15.10.RELEASE.jar"
CLASSPATH="$CLASSPATH:$MAVEN_REPO/mysql/mysql-connector-java/8.0.29/mysql-connector-java-8.0.29.jar"
CLASSPATH="$CLASSPATH:$MAVEN_REPO/org/mybatis/mybatis/3.5.7/mybatis-3.5.7.jar"
echo "运行 ShopGenerator..."
echo "类路径: $CLASSPATH"
# 运行生成器
java -cp "$CLASSPATH" com.gxwebsoft.generator.ShopGenerator
echo "生成器运行完成!"