Paul Sterl has written 34 articles

Quartz integration in JEE

Nowadays everybody talks about cloud and Microservices. The JEE container isn’t that sexy anymore. With microprofile.io the JEE world started to move into the direction of a more lightweight structure. We should also mention docker and friends which changed the way we deploy and run applications now.

Spring Boot RestTemplate no SSL check

Problem By default the Spring RestTempalte and the swagger OpenAPI client does an SSL check. This is usually not required on the test system, as so the goal is to remove the SSL check from the Spring Boot Rest Template. RestTemplate Apache HTTP Client pom.xml Swagger OpenAPI Client Furthermore sometimes it is required to remove…

Angular & Spring Boot

Problem We want to combine Spring and Angular use the Angular developing features but also be able to use the Spring IDE, in the end, everything should be build using maven and nicely packed into a JAR.Let’s get started. Overview Create a multi-module project Pack the frontend into an own JAR Include the frontend JAR…

IDE: Eclipse & VSCode

IDE & Plugins & Tools Java 17: https://adoptium.net/ Visual Studio Code: https://code.visualstudio.com/ Plugins GitLens Angular Language Service Docker Kubernetes ESLint Java Eclipse STS: https://spring.io/tools Git: https://git-scm.com/ Tools Docker Desktop: https://www.docker.com/products/docker-desktop Insomnia: https://insomnia.rest/ Tools for Windows Command Line: http://cmder.net/ Text Editor: https://notepad-plus-plus.org/ Database Graphical DB client for Eclipse https://dbeaver.io/ Local PostgreSQL DB for Mac OS https://postgresapp.com/…

Eclipse on a hight resolution screen

Problem Nowadays we have a screen with a resolution of 2560×1440 or 3440×1440 4K. The problem with Eclipse is, that all the icons and buttons stay very tiny and are hard to interact with. Solution The easiest solution is to adjust the eclipse.ini or STS.ini with the following parameters at the end: Fixed 200% scale…

Dates, DateTime, Timezone and the DB

TL;DR Summary Java Type DB Type Description SAVE Long NUMBER Just using a long as milliseconds, between the current time and midnight, January 1, 1970 UTC is the most secure way. SAVE Instant NUMBER Using in Java an Instant and converting it into a NUMBER to save it in the DB will also avoid any…

JEE 7 Activiti integration

Overview To enable Activiti in our JEE project the following steps are needed: Add the maven dependencies — include spring-context Add log4j configuration Add the activiti configuration for CDI integration activiti.cfg.xml Add your first activiti workflow Add an activiti compatible data source to your container Deploy and run it Git Project. Eclipse Plugin To install the…

JPA default entity listener

The problem Sometimes we want to register a default Entity Listeners which are called as soon an entity is persisted, without adding the @EntityListeners annotation to our classes, as in most cases we anyway provide interfaces so we can access data on the entity itself. The problem is, that we cannot annotate our entity listener with…

AngularJS Cheat Sheet

Create vs. Get AngularJS application The module dependency array tells AngularJS to create an app, otherwise to load it: Create myApp var app = angular.module(‚myApp‘, []); Get myApp var app = angular.module(‚myApp‘); Binding @ Text binding, expressions are supported using {{ }} = Two-way binding & Method binding < One-way binding (usually for components) ?…