Home » Tag Archives: Spring (page 24)

Tag Archives: Spring

Spring Professional Study Notes

spring-interview-questions-answers

Before we get down to my own additions to existing resources mentioned in my certification guide post I would like to reiterate all resources that I used for my preparation: Course-ware Spring in Action, Third Edition by Craig Walls Jeanne’s study notes Spring Framework Reference Documentation     Bean life-cycle Bean initialization process One of the key areas of the certification is ...

Read More »

Spring Security Misconfiguration

spring-interview-questions-answers

I recently saw Mike Wienser’s SpringOne2GX talk about Application Security Pitfalls. It is very informative and worth watching if you are using Spring’s stack on servlet container. It reminded me one serious Spring Security Misconfiguration I was facing once. Going to explain it on Spring’s Guide Project called Securing a Web Application. This project uses Spring Boot, Spring Integration and ...

Read More »

RSS Reader Using: ROME, Spring MVC, Embedded Jetty

codehaus-jetty-logo

In this post I will show some guidelines to create a Spring web application, running it using Jetty and using an external library called ROME for RSS reading. General I have recently created a sample web application that acts as an RSS reader. I wanted to examine ROME for RSS reading. I also wanted to create the application using Spring ...

Read More »

Spring/Hibernate improved SQL logging with log4jdbc

jboss-hibernate-logo

Hibernate provides SQL logging out of the box, but such logging only shows prepared statements, and not the actual SQL queries sent to the database. It also does not log the execution time of each query, which is useful for performance troubleshooting. This blog post will go over how to setup Hibernate query logging, and then compare it to the ...

Read More »

Performance Tuning of Spring/Hibernate Applications

jboss-hibernate-logo

For most typical Spring/Hibernate enterprise applications, the application performance depends almost entirely on the performance of it’s persistence layer. This post will go over how to confirm that we are in presence of a ‘database-bound’ application, and then walk through 7 frequently used ‘quick-win’ tips that can help improve application performance. How to confirm that an application is ‘database-bound’ To ...

Read More »

How does Spring @Transactional Really Work?

spring-interview-questions-answers

In this post we will do a deep dive into Spring transaction management. We will go over on how does @Transactional really work under the hood. Other upcoming posts will include: how to use features like propagation and isolation what are the main pitfalls and how to avoid them JPA and Transaction Management It’s important to notice that JPA on ...

Read More »

Spring 4: @DateTimeFormat with Java 8 Date-Time API

java-logo

@DateTimeFormat annotation that was introduced in Spring 3.0 as a part of Formatter SPI can be used to to parse and print localized field values in web applications. In Spring 4.0, @DateTimeFormat annotation can be used with Java 8 Date-Time API (java.time) out-of-the-box, without extra effort. In Spring, field formatting can be configured by field type or annotation. To bind ...

Read More »

Spring Integration Java DSL sample

spring-interview-questions-answers

A new Java based DSL has now been introduced for Spring Integration which makes it possible to define the Spring Integration message flows using pure java based configuration instead of using the Spring XML based configuration. I tried the DSL for a sample Integration flow that I have – I call it the Rube Goldberg flow, for it follows a ...

Read More »

Rocking with mongodb on spring boot

mongodb-logo

I’m a fan of Spring Boot and here’s my mongodb example project on Spring Boot. Most of the mongodb example projects are so basic that you won’t go far with them. You can search for plain Spring Data examples but they can get much complex than you’d like. So here’s mine. Here’s the pom I’ll use.         ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Advanced Java Guide
  • Java Design Patterns
  • JMeter Tutorial
  • Java 8 Features Tutorial
  • JUnit Tutorial
  • JSF Programming Cookbook
  • Java Concurrency Essentials