Paul Sterl has written 20 articles

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…

Tools and configuration Tips

IDE & Plugins Angular/ Text: https://code.visualstudio.com/ Plugins GitLens Angular v7 Snippets Angular Language Service Java: https://spring.io/tools Tools for Windows Command Line: http://cmder.net/ Text Editor: https://notepad-plus-plus.org/ Eclipse Memory settings ParallelGC In theory the ParallelGC should be better. Memory settings G1 Where the G1 os optimized for shorter GC pause which maybe is good too. Miscellaneous Autogenerate…

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) ?…

Android Fragments and Transactions

Problem Sometimes it is confusing how fragments work in Android and interesting side effects like: Why have Fragments empty constructors? Why shouldn’t I pass state variables like they are? Why do I need this Fragment transactions? What does addToBackStack mean and do I need it? Why is sometimes the Activity null in my fragment? Overview…

Java SSLContext and the SSLSocketFactory self signed certificate

Problem Often we want to connect to create a secure SSL connection to an HTTPs endpoint which is secured by a self signed Certificate. If we do so just with a simple call we usually face an nice exception like :

Solution Often I see that either somebody uses an trust all or just…

Android Bind Service to the Application cross Activities

The Problem Sometimes we want to bind an Android Service in our activities and wrap inside e.g. our communication to our backend. Now the problem arrises then we unbind it again. As usually if we change activities we want this service to survive and be in the very next activity. As soon we close the…

Test REST Services with Curl

Problem Often we want an easy way to test our REST services. Even if where are many tools around e.g. Chrome Plugins etc. it is maybe easier on servers to juts use curl to do the job. Basic PUT command

Add basic Authorization Curl already supports basic auth out of the box just adding the…