Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

开发环境下,启动时增加一系列安全校验 #16

Open
Nayacco opened this issue Aug 16, 2020 · 3 comments
Open

开发环境下,启动时增加一系列安全校验 #16

Nayacco opened this issue Aug 16, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@Nayacco
Copy link
Owner

Nayacco commented Aug 16, 2020

No description provided.

@Nayacco Nayacco added the enhancement New feature or request label Aug 16, 2020
@Nayacco
Copy link
Owner Author

Nayacco commented Aug 16, 2020

初步完成一些功能:

  1. DTO 定义 Long 字段,必须指定 @JsonSerialize(using = ToStringSerializer.class)
  2. 校验数据库表和实体的数量是否匹配
  3. 校验类懒加载,即只在dev环境加载到spring容器

@Nayacco
Copy link
Owner Author

Nayacco commented Aug 24, 2020

  1. public 方法是否有 @transactional 注解,非 readOnly 的情况下要指定 rollbackFor 属性

@Nayacco
Copy link
Owner Author

Nayacco commented Aug 28, 2020

  1. 如果发生集成,且父类和子类只要一个有 @SuperBuilder 注解,另一个也需要为 @SuperBuilder 注解
  2. MapStruct 定义了INSTANCE,且外面的代码没有直接用Mappers.getMapper的方式
  3. 如果一个类实现了Serializable,但是没有声明serialVersionUID。注意,父类有serialVersionUID了,子类还得有

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant