JDBC Connections Cheat Sheet

java-interview-questions-answers

Abstract This is a quick reference for JDBC connections for common databases. I seem to have to lookup this information a lot, so I figured it be good to have a reference all in one place.           Derby <dependency> <groupId>org.apache.derby</groupId> <artifactId>derbyclient</artifactId> <version>10.11.1.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.derby</groupId> <artifactId>derby</artifactId> <version>10.11.1.1</version> <scope>test</scope> </dependency> Embedded (in-memory) Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); String connectionUrl = ...

Read More »

Java Code Geeks are giving away 4 FREE PRO passes for DeveloperWeek 2018

#DEVWEEK 2018 — The World’s Largest Developer Expo & Conference Series The DeveloperWeek team has offered us discounted PRO Passes to DeveloperWeek 2018 so our members can attend the event. DeveloperWeek (#DEVWEEK 2018) is the world’s largest professional developer expo and conference series with 8,000+ participants across: 10+ Conferences, Technical Workshops, 200+ Speakers, DevExec World – the Executive Summit, 90+ ...

Read More »

Spring Based Application – Migrating to Junit 5

This is a quick write-up on migrating a Gradle based Spring Boot app from Junit 4 to the shiny new Junit 5. Junit 4 tests continue to work with Junit 5 Test Engine abstraction which provides support for tests written in different programming models, in this instance, Junit 5 supports a Vintage Test Engine with the ability to run JUnit 4 ...

Read More »

Cloud Native Applications with JWT

java-interview-questions-answers

A native cloud application is an application that is developed for a cloud computing environment. There is no specific answer to the question ” what is a cloud-native application” but different concepts that must be met. One of the most important in my opinion is the ability to scale up and down at a rapid rate. And this means that our applications cannot ...

Read More »

Picocli 2.0: Groovy Scripts on Steroids

Picocli 2.0 adds improved support for other JVM languages, especially Groovy. Why use picocli when the Groovy language has built-in CLI support with the CliBuilder class? You may like picocli’s usage help, which shows ANSI colors and styles by default. Another feature you may fancy is the command line TAB autocompletion. Finally, there is a slew of smaller features, like ...

Read More »

Picocli 2.0: Do More With Less

Introduction Picocli is a one-file command line parsing framework that allows you to create command line applications with almost no code. Annotate fields in your application with @Option or @Parameters, and picocli will populate these fields with command line options and positional parameters respectively. For example: @Command(name = "Greet", header = "%n@|green Hello world demo|@") class Greet implements Runnable { ...

Read More »

The Road to Cloud Native

In a world of numerous programming trends, companies are starting to boast about how they’re becoming “cloud native.” This declaration might seem full of hot air and pretension, however, there’s a huge value to embracing what cloud native truly is. In short, cloud native is an approach to creating and deploying applications that fully taps into the advantages of delivering, ...

Read More »