Spring

Spring Controller - Spring MVC Controller — step-by-step DevOps tutorial on Progressive Robot

Spring Controller – Spring MVC Controller

URL: https://www.progressiverobot.com/spring-controller-spring-mvc-controller/ Spring Controller annotation is a specialization of [@Component](/community/tutorials/spring-component) annotation. Spring Controller annotation is typically used in combination with annotated handler methods based on the RequestMapping annotation. Spring Controller Spring Controller annotation can be applied on classes only. It's used to mark a class as a web request handler. It's mostly used with [Spring […]

Read more
Spring MVC Tutorial — step-by-step DevOps tutorial on Progressive Robot

Spring MVC Tutorial

URL: https://www.progressiverobot.com/spring-mvc-tutorial/ In this Spring MVC Tutorial, we will learn how to develop Spring MVC web application using Spring Tool Suite. Spring MVC framework is widely used for [java web applications](/community/tutorials/java-web-application-tutorial-for-beginners "Java Web Application Tutorial for Beginners"). Spring MVC ![spring mvc, spring mvc tutorial](images/spring-mvc-tutorial-section-1.png) Just like [Struts Framework](/community/tutorials/struts-2-tutorial "Struts2 Tutorial with Example Projects"), Spring MVC […]

Read more
Spring @Value Annotation — step-by-step DevOps tutorial on Progressive Robot

Spring @Value Annotation

URL: https://www.progressiverobot.com/spring-value-annotation/ Spring @Value annotation is used to assign default values to variables and method arguments. We can read spring environment variables as well as system variables using @Value annotation. Spring @Value annotation also supports SpEL. Let's look at some of the examples of using @Value annotation. Spring @Value – Default Value We can assign […]

Read more
Spring @Async Annotation for Asynchronous Processing — step-by-step DevOps tutorial on Progressive Robot

Spring @Async Annotation for Asynchronous Processing

URL: https://www.progressiverobot.com/spring-async-annotation/ Spring @Async annotation allows us to create asynchronous methods in spring. Let's explore @Async in this tutorial on spring framework. For a brief, when we annotate a method of a bean @Async annotation, Spring will execute it in a separate [thread](/community/tutorials/java-thread-example) and the caller of the method will not wait till the method […]

Read more
Spring Data JPA — step-by-step DevOps tutorial on Progressive Robot

Spring Data JPA

URL: https://www.progressiverobot.com/spring-data-jpa/ Spring Data JPA is part of Spring Data family. Spring Data makes it easier to create Spring driven applications that use new ways to access data, such as non-relational databases, map-reduction frameworks, cloud services, as well as well-advanced relational database support. This article will discuss about Spring Data JPA. We will also look […]

Read more
Spring ORM example - JPA, Hibernate, Transaction — step-by-step DevOps tutorial on Progressive Robot

Spring ORM example – JPA, Hibernate, Transaction

URL: https://www.progressiverobot.com/spring-orm-example-jpa-hibernate-transaction/ Welcome to the Spring ORM Example Tutorial. Today we will look into Spring ORM example using Hibernate JPA transaction management. I will show you a very simple example of Spring standalone application with following features. Dependency Injection (@Autowired annotation) JPA EntityManager (provided by Hibernate) Annotated transactional methods (@Transactional annotation) Spring ORM Example ![spring […]

Read more
Spring WebFlux - Spring Reactive Programming — step-by-step DevOps tutorial on Progressive Robot

Spring WebFlux – Spring Reactive Programming

URL: https://www.progressiverobot.com/spring-webflux-reactive-programming/ Spring WebFlux is the new module introduced in Spring 5. Spring WebFlux is the first step towards reactive programming model in spring framework. Spring Reactive Programming If you are new to reactive programming model, then I would highly suggest you to go through following articles to learn about reactive programming. Reactive Manifesto Reactive […]

Read more
Spring @Autowired Annotation — step-by-step DevOps tutorial on Progressive Robot

Spring @Autowired Annotation

URL: https://www.progressiverobot.com/spring-autowired-annotation/ Spring @Autowired annotation is used for automatic dependency injection. Spring framework is built on [dependency injection](/community/tutorials/spring-dependency-injection "Spring Dependency Injection Example with Annotations and XML Configuration") and we inject the class dependencies through spring bean configuration file. Spring @Autowired Annotation ![spring @autowired annotation, @Autowired, spring autowiring, spring @autowired](images/spring-autowired-annotation-section-1.png) Usually we provide bean configuration details […]

Read more
Spring DataSource JNDI with Tomcat Example — step-by-step DevOps tutorial on Progressive Robot

Spring DataSource JNDI with Tomcat Example

URL: https://www.progressiverobot.com/spring-datasource-jndi-with-tomcat-example/ Welcome to the Spring DataSource JNDI Tomcat Example Tutorial. Earlier we saw how to implement database operations using [Spring JDBC](/community/tutorials/spring-jdbc-example "Spring JDBC and JdbcTemplate CRUD with DataSource Example Tutorial") integration. However most of the time enterprise applications are deployed in a servlet container such as Tomcat, JBoss etc. Spring DataSource We know that […]

Read more
Spring @PostConstruct and @PreDestroy — step-by-step DevOps tutorial on Progressive Robot

Spring @PostConstruct and @PreDestroy

URL: https://www.progressiverobot.com/spring-postconstruct-predestroy/ When we configure [Spring Beans](/community/tutorials/spring-ioc-bean-example-tutorial) using [dependency injection](/community/tutorials/spring-dependency-injection), sometimes we want to make sure everything is initialized properly before our bean starts serving the client requests. Similarly, when the context is destroyed, we may have to close some resources used by spring bean. Spring @PostConstruct When we annotate a method in Spring Bean […]

Read more
CHAT