Giter Club home page Giter Club logo

springbootproject's Introduction

SpringBootProject

Important Sprint properties : Java Brains : https://www.youtube.com/watch?v=dpgwqStAj3k

Important Spring Annotations : Java Brains : https://www.youtube.com/watch?v=wf70Hs-aCcI&t=3s

@Component : Class level annotation. Spring manages such classes and creates bean and provide dependency injection, etc. @Service, @Repostiory, @Controller -> Class level annotation. Tells spring that a class is special type and more than just a component. @Autowired : Field level annotation, method level annotation(setter method) @Value : find the value of a certain property from property file and inject the value. Promotes loose copling, helps in configurations and externalize the configuration. It works only with Spring beans spEL @Configuration : contains setup and wiing logic. can be used with @ComponentScan("") @Bean : Method level annotation -> Tells spring execute this method and whatever this method returns take that instance and make that spring bean. used in combo of @Configuration Different from annotating the
class. see video for reason @Trasactional : @RequestMapping : can be annotated on class level or method level. Keeps controller clean and maps the web http request based on http method and path in your controller class @GetMapping, @PostMapping, etc. @RestController -> help to return the controller a json response. Combo of @Controller + @responseBody @SpringBootApplication : Bootstrapping spring boot application

springbootproject's People

Contributors

pragatiagarwal avatar

Watchers

 avatar

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.