txw/txw-sso/README.md
2026-04-05 15:05:13 +08:00

88 lines
4.6 KiB
Markdown
Raw Permalink 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.

# 1、项目启动类
无需再编写启动类
### 开发环境可使用
`com.css.txw.sso.app.DevAppStarter`
### 其他环境使用
`com.css.ggzc.framework.app.ApplicationStarter`
# 2、目录结构
```
│ .gitignore
│ pom.xml
│ README.md
├─txw-sso-service-api api包
│ │ pom.xml
│ └─src
│ └─main
│ ├─java
│ │ └─com.css.txw.sso 模块包
│ │ ├─api api接口
│ │ │ ISsoApi.java
│ │ │
│ │ ├─configuration 模块自动装配配置 需要在org.springframework.boot.autoconfigure.AutoConfiguration.imports中配置基于插件化开发各模块在该类中可指定要扫描的包等配置启动类不会自动扫描
│ │ │ SsoApiConfiguration.java
│ │ │
│ │ ├─constants api常量
│ │ │ SsoConstants.java
│ │ │
│ │ └─pojo api pojo
│ │
│ └─resources 模块相关的配置说明注意使用config类
│ │ additional-spring-configuration-metadata.json
│ │
│ └─META-INF
│ └─spring 模块自动装配配置
│ org.springframework.boot.autoconfigure.AutoConfiguration.imports
└─txw-sso-service-biz service包
│ pom.xml
└─src
└─main
├─java
│ └─com.css.txw.sso 模块包
│ ├─configuration 本模块自动装配设置 需要在org.springframework.boot.autoconfigure.AutoConfiguration.imports中配置基于插件化开发各模块在该类中可指定要扫描的包等配置启动类不会自动扫描
│ │ SsoServiceConfiguration.java
│ │
│ ├─constants
│ │
│ ├─consumer kafaka消费服务
│ │
│ ├─controller controller 建议按业务分包 注意禁止在controller中写跟sql相关的逻辑一律写到mapper中
│ │
│ ├─job 定时任务
│ │
│ ├─mapper mapper 建议按业务分包
│ │
│ ├─pojo
│ │ ├─domain
│ │ │
│ │ ├─dto
│ │ │
│ │ └─vo
│ │
│ │-properties 配置类
│ │
│ ├─service service 建议按业务分包 注意SQL相关内容写到mapper中不要写在service中
│ │
│ └─util 本业务域工具类 跟业务相关的写在这里 公共类的请优先使用framework中有的或者在framework中增加
└─resources
│ additional-spring-configuration-metadata.json 模块相关的配置说明注意使用config类
│ application.yaml 模块主配置文件
│ bootstrap-env.yml 模块env环境配置文件
│ bootstrap-local.yml 模块开发环境配置文件
│ bootstrap-nacos.yml 模块nacos配置文件
│ bootstrap.yml 模块主配置文件
│ logback-spring.xml 模块日志配置文件
├─mapper 模块mapper
└─META-INF
└─spring 模块自动装配配置
org.springframework.boot.autoconfigure.AutoConfiguration.imports
```