# iris-basic-saas **Repository Path**: zhts/iris-basic-saas ## Basic Information - **Project Name**: iris-basic-saas - **Description**: 活动 saas - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-07 - **Last Updated**: 2024-03-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 云mall脚手架项目TSF轻量版 [TOC] ### 什么是轻量版 相比普通版本,轻量版移除了所有demo,仅保留了最基本的项目结构。方便搭建新服务 ### 项目结构说明 | 包名 | 用途 | |-----|-----| | restapi | rest api 包,包含controller,提供restful服务 | | domain | 域模块,包含域的相关类文件 | | interface | 接口模块,包含dubbo服务所暴露的接口 | | repository | repository,持久化相关,如mybatis的mapper等 | | service | interface的具体实现 | | starter | 启动器,项目启动入口,一般放置配置等文件 | ### 项目依赖关系 ``` starter -> rest -> service -> interface domain -> repo ``` > 不建议对依赖关系进行调整,有不满足需求的情况请提交issue或反馈给levikang ### 生成自定义项目 ```shell ./start_lite.sh # 根据提示生成 ``` - 说明 ``` 1.修改app.properties的app.id和app.name 2.修改application.properties的applicationName ``` ### 如何启动 1、 首先下载 [consul](https://www.consul.io/downloads.html) ```shell # 参考 https://cloud.tencent.com/document/product/649/16618 # 本地启动consul ./consul agent -dev ``` 2、 IDEA中增加启动配置 ```shell -Dtsf_consul_ip=127.0.0.1 -Dtsf_consul_port=8500 -Dtsf.swagger.enabled=false -Dspring.profile.active=local ``` 3、 启动服务 > 与普通版不同的是,轻量版不再需要复杂的配置,即可启动。 > 如果需要普通版的内部集成的组件,请参考普通版的设置(注意,部分组件需要调整pom,删掉注释) ### maven setting.xml 参考 #### 注意事项 > 1) wifi 使用 tencent_wifi ,需保证可以访问外网(rmall为外网仓库) > 2) 使用下面的参考 settings.xml ,尤其注意proxy要注视掉 > 3) 如果遇到[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.tencent.sr.rmall:spring-boot-scaffold-archetype:0.0.2-LITE-SNAPSHOT) -> [Help 1]这个错误,可能是之前拉取过类似的包,需要本地删除重新运行; > 4) 注意将 maven 仓库用户认证信息 内的凭证替换成自己的 ```xml /data/rmall/repository/ releases tcloud Tcloud!2019fff snapshots tcloud Tcloud!2019fff thirdparty tcloud Tcloud!2019fff nexus tcloud Tcloud!2019fff mirrors-tencent-central levikang b4aa9f78338c11ea8f586c92bf3acd2c com-tencent-smartretail levikang b4aa9f78338c11ea8f586c92bf3acd2c mirrors-tencent-central-pub g_rmalldeploy 22fb5eac538d11eaa8e96c92bf47000d rmall_nexus nexus nexus http://maven.rmall.qq.com/repository/maven-public/ true true nexus nexus http://maven.rmall.qq.com/repository/maven-public/ true true qcloud-repo qcloud-central qcloud mirror central http://mirrors.cloud.tencent.com/nexus/repository/maven-public/ true true qcloud-plugin-central http://mirrors.cloud.tencent.com/nexus/repository/maven-public/ true true mirrors-tencent mirrors-tencent-central mirrors tencent central https://mirrors.tencent.com/repository/maven/RMALL true true mirrors-tencent-plugin-central https://mirrors.tencent.com/repository/maven/RMALL true true unidal unidal unidal http://unidal.org/nexus/content/repositories/releases/ true qcloud-tsf qcloud-tsf qcloud mirror central https://mirrors.tencent.com/repository/maven/tsf true true jdk-1.8 true 1.8 1.8 1.8 1.8 UTF-8 rmall_nexus qcloud-repo qcloud-tsf ```