Spring

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
Spring Boot @SpringBootApplication, SpringApplication Class — step-by-step DevOps tutorial on Progressive Robot

Spring Boot @SpringBootApplication, SpringApplication Class

URL: https://www.progressiverobot.com/springbootapplication-springapplication/ Spring Boot @SpringBootApplication Annotation Spring Boot @SpringBootApplication annotation is used to mark a configuration class that declares one or more @Bean methods and also triggers auto-configuration and component scanning. It's same as declaring a class with @Configuration, @EnableAutoConfiguration and @ComponentScan annotations. Spring Boot SpringApplication Class [Spring Boot](/community/tutorials/spring-boot-tutorial) SpringApplication class is used to bootstrap […]

Read more
Spring Batch Example — step-by-step DevOps tutorial on Progressive Robot

Spring Batch Example

URL: https://www.progressiverobot.com/spring-batch-example/ Welcome to Spring Batch Example. Spring Batch is a [spring framework](/community/tutorials/spring-framework) module for execution of batch job. We can use spring batch to process a series of jobs. Spring Batch Example Before going through spring batch example program, let's get some idea about [spring batch](/community/tutorials/spring-batch) terminologies. A job can consist of 'n' number […]

Read more
Spring Dependency Injection — step-by-step DevOps tutorial on Progressive Robot

Spring Dependency Injection

URL: https://www.progressiverobot.com/spring-dependency-injection/ Today we will look into Spring Dependency Injection. Spring Framework core concepts are "Dependency Injection" and "Aspect Oriented Programming". I have written earlier about [Java Dependency Injection](/community/tutorials/java-dependency-injection-design-pattern-example-tutorial "Java Dependency Injection ") and how we can use [Google Guice](/community/tutorials/google-guice-dependency-injection-example-tutorial "Google Guice Dependency Injection Example Tutorial") framework to automate this process in our applications. Spring […]

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

Spring @PropertySource

URL: https://www.progressiverobot.com/spring-propertysource/ Spring @PropertySource annotation is used to provide properties file to Spring Environment. This annotation is used with @Configuration classes. Spring PropertySource annotation is repeatable, means you can have multiple PropertySource on a Configuration class. This feature is available if you are using Java 8 or higher version. Spring PropertySource Example Let's quickly go […]

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

Spring @Bean Annotation

URL: https://www.progressiverobot.com/spring-bean-annotation/ Spring @Bean Annotation is applied on a method to specify that it returns a bean to be managed by Spring context. Spring Bean annotation is usually declared in Configuration classes methods. In this case, bean methods may reference other @Bean methods in the same class by calling them directly. Spring @Bean Example Let's […]

Read more
CHAT