modified: src/main/java/com/thinker/annotation/Component.java
new file: src/main/java/com/thinker/domain/Test.java new file: src/main/java/com/thinker/mapper/TestMapper.java
This commit is contained in:
parent
d46b901177
commit
95fa84f272
@ -1,8 +1,13 @@
|
||||
package com.thinker.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* Created by lzh on 16-6-14.
|
||||
*/
|
||||
@Target(ElementType.TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface Component {
|
||||
|
||||
}
|
||||
|
25
src/main/java/com/thinker/domain/Test.java
Normal file
25
src/main/java/com/thinker/domain/Test.java
Normal file
@ -0,0 +1,25 @@
|
||||
package com.thinker.domain;
|
||||
|
||||
/**
|
||||
* Created by lzh on 16-6-15.
|
||||
*/
|
||||
public class Test {
|
||||
private int id;
|
||||
private String name;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
11
src/main/java/com/thinker/mapper/TestMapper.java
Normal file
11
src/main/java/com/thinker/mapper/TestMapper.java
Normal file
@ -0,0 +1,11 @@
|
||||
package com.thinker.mapper;
|
||||
|
||||
import com.thinker.annotation.Component;
|
||||
|
||||
/**
|
||||
* Created by lzh on 16-6-15.
|
||||
*/
|
||||
@Component
|
||||
public interface TestMapper {
|
||||
|
||||
}
|
Reference in New Issue
Block a user