Enable CORS in Spring Boot

in Programming

It’s quite common to develop a JavaScript App on a Node dev server running on a port such as :3000 these days. If your back-end is powered by Spring, you’ll end up needing to make Ajax calls from your front-end...

Spring Boot Tutorial - Glossary

in Programming

Annotation Syntactic metadata that can be added to your source code in order to declare new behaviors or constraints. Classes, methods, variables, parameters and packages may be annotated. Class The blueprint from which individual objects are created.(more) A file (with...

Merge PDF pages in Java and iText

in Programming

A Java method that correctly merges PDF pages using iTextPDF version 5. The result is a PDF containing a super page. //Based on http://bit.ly/2bY58lQ public void mergePages(String source, String destination) throws IOException, DocumentException { PdfReader reader = new PdfReader(source); //...

Programming JavaScript Applications - Book Review

in Books

TL;DR In Programming JavaScript Applications Eric Elliott goes through the most important aspects of JavaScript development. Written in 2014, the book is still relevant, but it already has some outdated content such as the state of the JavaScript front end...

So you think you know your functions?

in Programming

JavaScript is known for having a steep learning curve, due to the familiar semantics and permissive nature. Even though it is easy to quickly get some level of understanding of its main features, the language’s real power relies in more...

Spring Boot in Action - Book Review

in Books

TL;DR Spring is the de facto solution for creating Java apps. Besides its popularity and ease of use, it offers solutions for a lot of common problems in the development process. With all the power, Spring was also known for...

Objects in JavaScript - Part I

in Programming

The JavaScript world is going through a lot. Long gone are the days of plain jQuery DOM manipulation and minimal templating with Handlebars. There is an abundance of revolutionary frameworks, easy to use tools, pertinent opinions, calculated paradigm shifts, cleverly...