package smartsuite.web;
import javax.inject.Inject;
import org.springframework.context.ApplicationContext;
public class AA {
@Inject
private ApplicationContext applicationContext;
public void proc(String[] args) {
String[] beans = applicationContext.getBeanDefinitionNames();
for (String bean : beans) {
System.out.println("beanbeanbeanbeanbeanbeanbean : " + bean);
}
}
}
'Java > Spring' 카테고리의 다른 글
spring3 legacy (0) | 2023.01.30 |
---|---|
simple servlet (0) | 2021.11.14 |
lombok 같은 library를 만들면 (0) | 2021.05.17 |
[deploy] Github Action / S3 / CodeDeploy / EC2 (0) | 2021.05.14 |
java.lang.IllegalAccessException: Class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor can not access a member of class org.example.entity.BaseEntity with modifiers "public" (0) | 2021.05.09 |