Posts Tagged ‘ spring ’

Deploy a Spring Boot Application to Pivotal Web Services

deployment

Spring Boot makes it easy to create stand-alone applications based on the Spring framework. Pivotal is the company behind the Spring framework. Pivotal is also running a cloud platform  called Pivotal Web Services (PWS). PWS provides a run time environment for several types of server based applications and PWS are particularly suitable for Spring Boot applications. If you are looking for a way to run your Spring Boot application „in the cloud“ take a look  at PWS. In this article I will show how to deploy a simple Spring Boot application in the  PWS environment.

Weiterlesen

Integrate Spring into JSF 2

There are many ways to integrate the Spring Framework into a JSF application. In this post I write about a tight integration in which almost all configuration is done with Spring annotations without loosing JSF bean handling in the front end. I have created an application template to show this approach. The project is hosted on GitHub (spring-jsf). In the end of the article you find a guide how to build and run this application.

Weiterlesen

Inheritance In Spring XML Configuration

Spring offers inheritance for bean definitions in XML configuration file to make the configuration simpler. Create a parent bean and set abstract=true. Other bean definitions can extend this bean to inherit all configuration details from the parent.

Weiterlesen

Caching mit Spring AOP

Mit der Aspektorientierte Programmierung (AOP) in Spring lässt sich ein Cache implementieren, der die Ergebnisse beliebiger Methoden speichern kann. Der Quellcode der Methoden muss dafür nicht verändert werden. Der Cache kann nachträglich in fertige Spring Projekte integriert werden.

Weiterlesen

Logging mit Spring AOP

Logging ist wichtig. Trotzdem spricht vieles gegen zu viel Logging in Anwendungen:

  • Logging ist für die Funktion einer Anwendung unnötig.
  • Logging macht den Quellcode unübersichtlich.
  • Logging beeinträchtigt die Performance.

Alle diese Nachteile lassen sich vermeiden und trotzdem kann der Aufruf jeder Methode incl. Parameter und Rückgabewerte und die Laufzeit geloggt werden. Möglich machen dies Spring und Aspektorientierte Programmierung (AOP).

Weiterlesen