Giter Club home page Giter Club logo

springnotes's Introduction

SpringNotes

The Spring Framework (Spring) is an open-source application framework that provides infrastructure support for developing Java applications. Spring is basically designed to make things easier, safer, and quicker.

Spring Boot works with apps by using build and dependencies. Maven is the tool that is used to specify what dependencies or libraries the application will use for compiling and packaging for development.

Controller:

  • No business Logic
  • Handles Requests and creates/builds Responses
  • works and cordinccates with repo and Service
  • Annotated with @Controller

Repository:

  • Annotated with @Repository
  • One to one object mapping
  • Database Interaction
  • combines the @Controller and @ResponseBody into a single annotation

Service:

  • Annotated with @Service
  • This is where the business logic goes
  • Methods go here usually similar to repo methods
  • specifies you intend to use the class as part of your service layer

Bean:

  • useful if you have a class that requires an instance of another class as a property

  • @RequestParam allows you to send parameters in the get request and use them in Java

  • @Entity used to mark the persistence objects stores as records in the database

  • @Autowired the process of placing an instance of one bean into the specified field in an instance of another bean

  • @Id specifies the primary key of an entity

  • @JoinColumn helps us specify the column we'll use for joining an entity association or element collection

  • @Column used to specify the mapped column for a persistent property or field

  • @GeneratedValue provides for the specification of generation strategies for the values of primary keys

  • @Bean useful if you have a class that requires an instance of another class as a property

  • @RequestParam allows you to send parameters in the get request and use them in Java

springnotes's People

Contributors

dulleydoo 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.