Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.7k views
in Technique[技术] by (71.8m points)

java 注解写了这么多代码干嘛?

https://blog.csdn.net/su20145...

1.  package com.susu;
    

3.  import java.lang.annotation.ElementType;
    
4.  import java.lang.annotation.Retention;
    
5.  import java.lang.annotation.RetentionPolicy;
    
6.  import java.lang.annotation.Target;
    
7.  @Retention(RetentionPolicy.RUNTIME)
    
8.  @Target(ElementType.TYPE)
    
9.  public @interface Table {
    
10.  String value();
1.  package com.susu;
    

3.  import java.lang.annotation.ElementType;
    
4.  import java.lang.annotation.Retention;
    
5.  import java.lang.annotation.RetentionPolicy;
    
6.  import java.lang.annotation.Target;
    

8.  @Retention(RetentionPolicy.RUNTIME)
    
9.  @Target(ElementType.FIELD)
    
10.  public @interface Column {
    
11.  String value();

写了这么多代码是为了架构设计?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...