# groovy-study **Repository Path**: yangli2020/groovy-study ## Basic Information - **Project Name**: groovy-study - **Description**: groovy 学习 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-20 - **Last Updated**: 2021-09-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ubpm多模块demo(脚手架原型) ## 使用 (根据脚手架生成项目) mvn archetype:generate -DgroupId=com.shinemo.test -DartifactId=archetype-test -Dversion=1.0.3-SNAPSHOT -DarchetypeGroupId=com.shinemo.demo -DarchetypeArtifactId=groovy-study-archetype -DarchetypeVersion=1.0.3-SNAPSHOT -X -DarchetypeCatalog=local ## 约定 - 业务异常统一使用com.shinemo.common.tools.exception.ApiException ## 项目结构 - groovy-study-client: 提供给外部依赖的client - groovy-study-core: service等业务逻辑实现层 - groovy-study-dal: 数据库操作层 - groovy-study-web: http接口层 ## mapper自动生成 使用mybatis-generator插件自动生成 ## 核心配置 - datasource配置: springboot autoconfig - redis配置: springboot autoconfig - springboot定时任务线程池配置: com.shinemo.demo.module.core.config.CoreConfig - http 全局异常处理器: com.shinemo.demo.module.web.exception.handler.GlobalExceptionHandler ## 打包 1. 执行mvn clean package -Dmaven.test.skip=true 打成zip包。 2. unzip后,执行run.sh (start、stop、restart)启动、停止、重启。