Giter Site home page Giter Site logo

dependency-injection's Introduction

dependency-injection sample

빌드 및 실행

gradle runApplication

설명

Spring-context 에서 component-scan 하여 빈들을 주입시켜주는 부분을 흉내내보았다 그냥 공부할 겸 만들어본 내용.

basePackage 밑으로 있는 @MyComponent 어노테이션을 사용한 클래스에 대해 자동 빈 생성 @MyAutowired 를 통해 빈 필드 주입 가능. (필드로만 주입가능) 스프링의 다양한 옵션 기능 없음.


multi project

application : 일반 어플리케이션 프로젝트
di : 의존성 주입 프로젝트 (spring-context 같은 프로젝트)

보완사항

그 어떠한 추가 옵션 기능없이 주입만 가능한 상태이다. 시간이 된다면 기능을 추가해보아야겠다. 코드도 좀 깔끔하게...

dependency-injection's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.