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); //...

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...

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...