Browse Source
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2604 50f2f4bb-b051-0410-bef5-90022cba6387pull/1/head
5 changed files with 49 additions and 4 deletions
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
package org.springframework.context.annotation6; |
||||
|
||||
import org.springframework.stereotype.Component; |
||||
|
||||
@Component |
||||
public class ComponentForScanning { |
||||
} |
||||
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
package org.springframework.context.annotation6; |
||||
|
||||
import org.springframework.context.annotation.Bean; |
||||
import org.springframework.context.annotation.Configuration; |
||||
|
||||
import test.beans.TestBean; |
||||
|
||||
@Configuration |
||||
public class ConfigForScanning { |
||||
@Bean |
||||
public TestBean testBean() { |
||||
return new TestBean(); |
||||
} |
||||
} |
||||
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
package org.springframework.context.annotation6; |
||||
|
||||
import javax.inject.Named; |
||||
|
||||
@Named |
||||
public class Jsr330NamedForScanning { |
||||
|
||||
} |
||||
Loading…
Reference in new issue