Package com.sishuok.spring4.generic

Examples of com.sishuok.spring4.generic.GenericConfig


        return "view";
    }

    @RequestMapping("/{id}")
    public A getUser(@PathVariable("id") Long id) {
        return new A();
    }
View Full Code Here


    @ComponentScan(basePackages = "com.sishuok.spring4.genericinject.component")
    static class GenericInjectConfig {

        @Bean
        public List<BeanInteface> customBeanIntefaceList() {
            return Arrays.asList((BeanInteface) new BeanImpl1());
        }
View Full Code Here

            return Arrays.asList((BeanInteface) new BeanImpl1());
        }

        @Bean
        public List<BeanImpl1> customBeanBeanImpl1List() {
            return Arrays.asList(new BeanImpl1());
        }
View Full Code Here

*/
public class XmlGroovyBeanDefinitionTest1 {
    @Test
    public void test() {
        ApplicationContext ctx = new GenericGroovyApplicationContext("classpath:spring-config-xml.groovy");
        MessagePrinter messagePrinter = (MessagePrinter) ctx.getBean("messagePrinter");
        messagePrinter.printMessage();
        System.out.println(ctx.getBean("map"));
    }
View Full Code Here

TOP

Related Classes of com.sishuok.spring4.generic.GenericConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.