Coder Social home page Coder Social logo

learnspring's Introduction

LearnSpring

Fundamentals

Fundamental Problem Solution
JEE Testability Configuration
POJO Based Maintainability Focus
Unobtrusive Scalability Testing
AOP/Proxies Complexity Annotation or XML Based
Best Practices Business Focus

Project setup

Use Maven, Java 8, Spring 4, Intellij. Use maven dependency to download spring.

Spring XML configuration

Setter Injection. Constructor Injection (Index based) or autowired in applicationContext.xml. Need to input each bean manually.

Spring annotation configuration using XML

Use annotations @Repository, @Service, @Component, @Autowired. Use below in applicationContext.xml to scan package.

<context:annotation-config />

<context:component-scan base-package="com.practice.spring"/>

Field, Setter or Constructor Injection.

Spring configuration using java.

Add AppConfig.java Class and use @Configuration the class level annotation, @Bean the method level annotation.

If we want to use @Autowired annotation configuration, add @ComponentScan({"com.practice"}) in AppConfig.java.

learnspring's People

Contributors

zubogu avatar

Watchers

James Cloos avatar  avatar

Forkers

lanaflonperso

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.