exception work

This commit is contained in:
eugenp 2013-05-24 21:36:46 +03:00
parent e85fd01d61
commit 144ce58d76
4 changed files with 61 additions and 17 deletions

View File

@ -0,0 +1,19 @@
package org.baeldung.spring.web.config;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@Configuration
@EnableWebMvc
@ComponentScan("org.baeldung.web")
public class WebConfig extends WebMvcConfigurerAdapter {
public WebConfig() {
super();
}
// API
}

View File

@ -0,0 +1,16 @@
package org.baeldung.web;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class BeanA {
@Autowired
private BeanB b;
public BeanA() {
super();
}
}

View File

@ -0,0 +1,9 @@
package org.baeldung.web;
public class BeanB {
public BeanB() {
super();
}
}