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:
lzh984294471 2016-06-15 11:43:09 +08:00
parent d46b901177
commit 95fa84f272
3 changed files with 41 additions and 0 deletions

View File

@ -1,8 +1,13 @@
package com.thinker.annotation; package com.thinker.annotation;
import java.lang.annotation.*;
/** /**
* Created by lzh on 16-6-14. * Created by lzh on 16-6-14.
*/ */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Component { public @interface Component {
} }

View 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;
}
}

View 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 {
}