SpringBoot练习:注解实践,自动生成查询SQL语句
目标:实现通过注解自动生成SQL语句要求:用户表字段:用户名、年龄、手机号码方便对每个字段的组合条件进行检索,打印SQL模仿JPA代码实现:表注解:@Target({ElementType.TYPE})@Retention(RetentionPolicy.RUNTIME)public @interface Table { String value();}字段注解:@Target({ElementType.METHOD})@Retention(RetentionPoli
原创
2021-04-11 21:24:20 ·
867 阅读 ·
0 评论