# 1. 清理并打包
cd yudao-server
mvn clean package -DskipTests
# 2. 启动服务
java -jar target/yudao-server.jar --spring.profiles.active=local
cd yudao-server
mvn spring-boot:run "-Dspring-boot.run.profiles=local"
Caused by: org.xml.sax.SAXParseException: 元素内容必须由格式正确的字符数据或标记组成
解决方案:清理 target 目录后重新编译
# 清理所有模块的 target 目录
mvn clean
# 或者手动删除
rm -rf yudao-module-*/target
rm -rf yudao-server/target
# 重新打包
cd yudao-server
mvn clean package -DskipTests
The bean 'xxx' could not be registered. A bean with that name has already been defined
解决方案:
BEAN_CONFLICT_FIX.mdAnnotation-specified bean name 'xxxMapper' conflicts with existing
解决方案:
MAPPER_CONFLICT_FIX.mdMyBatis TypeAlias conflict
解决方案:
TYPEALIAS_CONFLICT_FIX.mdcd yudao-ui/yudao-ui-admin-vue3
# 安装依赖(首次运行)
pnpm install
# 启动开发服务器
pnpm dev
访问地址:http://localhost:80
http://localhost:48080http://localhost:48080/doc.htmlhttp://localhost:48080/druidhttp://localhost:80当遇到问题需要完全重启时:
# 1. 停止所有服务
# 按 Ctrl+C 停止前后端服务
# 2. 清理编译文件
mvn clean
# 3. 重新编译后端
cd yudao-server
mvn clean package -DskipTests
# 4. 启动后端
java -jar target/yudao-server.jar --spring.profiles.active=local
# 5. 启动前端(新终端)
cd yudao-ui/yudao-ui-admin-vue3
pnpm dev
修改代码后:
修改 DO 类后:
mvn install,优先使用 mvn clean package添加新模块后:
数据库变更后:
2026-02-04