Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sagframe/sqltoy-strict
https://github.com/sagframe/sqltoy-strict
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sagframe/sqltoy-strict
- Owner: sagframe
- License: apache-2.0
- Created: 2020-09-01T05:27:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-09T06:42:22.000Z (2 months ago)
- Last Synced: 2024-11-09T07:30:39.043Z (2 months ago)
- Language: Java
- Size: 80 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 演示严格分DTO(VO)和POJO(Entity) 的项目实现过程
## 1. quickvo-maven-plugin 插件* 区别在于quickvo.xml的配置,额外增加了entity实体对象生成
```xml
```
## 2. 数据初始化
* 在mysql中创建strict数据库,并配置src/main/resoruces下面的application.properties
* 执行src/main/resources/mock/strict_init.sql 完成表结构和数据初始化## 3. 阅读src/main/java下面com.strict.modules.sagacity 和 system模块下面的代码
## 4. 通过启动StrictApplication进行swagger演示
* 访问:http://localhost:8080/sqltoy-strict/springdoc/docs.html
* 可以完成字典分类的维护和唯一性验证,参见:DictTypeController# 规则说明
## sqltoy常规情况下通过LightDao来避免开发者写转接式的dao
* 转接式的Dao就是本质可以通过统一的dao来完成的,为了保持service、dao这种结构形态,刻意写出一个dao然后其中不包含任何的附加逻辑只做一个转调