Subscribe: Javalobby - The heart of the Java developer community
Added By: Feedage Forager Feedage Grade A rated
Language: English
announced spring  application  boot  cloud foundry  cloud  code  java  new  spring boot  spring cloud  spring data  spring framework  spring 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Javalobby - The heart of the Java developer community

DZone Java Zone

Recent posts in Java on


IntelliJ IDEA 2017.2 Public Preview

Thu, 22 Jun 2017 18:01:00 GMT

The last couple of months have been a lot of fun as we’ve been working on IntelliJ IDEA 2017.2, which is due out this summer. We appreciate the contributions from all EAP participants and the feedback they’ve shared on the new features. We reached a feature-freeze two weeks ago, and today, with roughly a month before the release, we’re happy to give you a detailed glimpse of what’s noteworthy in the upcoming IntelliJ IDEA 2017.2.

If you can’t wait, download the public preview build right away and try it on your own. Otherwise, read on and learn about the major changes.

How to Implement a New Realm in Tomcat

Thu, 22 Jun 2017 14:01:24 GMT

Tomcat by default ships with a couple of Realm implementations likeJDBCRealmDataSourceRealm, and JNDIRealm, etc. But sometimes, it is not sufficient for your organization’s requirements and you are required to apply your own implementations.

How to Implement a Custom Realm in Tomcat

You can create your own realm by extending RealmBase class; here, I am going to show an example of implementing a new Realm in Tomcat.

Using JMS in Spring Boot

Thu, 22 Jun 2017 11:01:00 GMT

JMS (Java Message Service) is a Java Message Oriented Middleware used to send messages between clients and works by sending messages to a message queue which are then taken when possible to execute a transaction. This post will focus on implementing JMS with Spring Boot, which doesn’t take long at all to setup.

JMS and message queues, in general, bring some certain advantages over using RESTful services such as:

Java Command-Line Interfaces (Part 1): Apache Commons CLI

Thu, 22 Jun 2017 09:01:09 GMT

Although I typically use Groovy to write JVM-hosted scripts to be run from the command-line, there are times when I need to parse command-line parameters in Java applications and there are a plethora of libraries available for Java developers to use to parse command-line parameters. In this post, I look at one of the best known of these Java command line parsing libraries: Apache Commons CLI.

I have blogged on Apache Commons CLI before, but that post is over eight years old and describes Apache Commons CLI 1.1. Two classes that I demonstrated in that post, GnuParser and PosixParser, have since been deprecated. The examples in this current post are based on Apache Commons CLI 1.4 and use the newer DefaultParser that was introduced with CLI 1.3 to replace GnuParser and PosixParser.

Learning Git With GitKraken: How to Squash Commits [Video]

Thu, 22 Jun 2017 05:01:13 GMT

We created a series of Git tutorial videos that were really well received by developers wanting to learn Git. However, we got a lot of feedback that you (the viewer) wanted to see how those Git concepts could be applied in GitKraken. So, voila! We created the Learning Git with GitKraken video series.

Our latest video in this series is about squashing commits. In 90 seconds, you’ll learn what it means to squash commits, and you’ll see how easy it is to squash commits in GitKraken.

The ABCs of RegEx

Wed, 21 Jun 2017 20:01:00 GMT

Teacher: Today we will learn RegEx and how to use it in Java.

Jonny and Alice scream with fear, then say: That's so confusing! It makes our lives miserable!

This Week in Spring: Spring Framework 5.0 RC2 and Spring Security 5.0

Wed, 21 Jun 2017 16:01:00 GMT

Hi Spring fans and welcome to another installment of This Week in Spring! This week I’m in Krakow, Poland for the epic Devoxx PL event and then it’s off to Luxembourg for the VoxxedDays Luxembourg event! If you’re around, don’t hesitate to say hi. Spring Framework lead Juergen Hoeller just announced Spring Framework 5.0 RC2. The new release is a major revision of RC1, refactoring the reactive support and path pattern parsing. It introduces JSR 305 @Nullable annotations into the codebase. Spring Data Release Train Kay M4 Released: Spring Data ninja Mark Paluch just announced Spring Data Train Kay M4, packed with new features and updates. Get the bits now! Spring IO Platform Athens-SR6: Spring IO Platform lead Andy Wilkinson has just announced Spring IO Platform Athens-SR6, available from and Maven Central. The new maintenance release includes Spring Boot 1.4.7, Spring Framework 4.3.9, Spring Integration 4.3.10, Spring REST Docs 1.1.3, Spring Security OAuth 2.0.14, Spring Web Flow 2.4.5, and Spring Cloud Connectors 1.2.4, among many other things. Spring IO Platform Brussels-SR3: Not one to rest on his laurels, Andy also released Spring IO Platform Brussels-SR3, which includes updates a large number of supporting libraries. Get the bits now! Spring Boot 2.0.0.M2 Available Now: Spring Boot ninja Stéphane Nicoll just announced Spring Boot 2.0M2, following on Spring Framework RC2. Spring Session 2.0.0 M2 Released: Spring Session lead Rob Winch just announced Spring Session 2.0.0.M2. The new release ensures compatibility with Spring Framework 5.0.0.RC2 and Spring Data Kay-M4, both baselines for the new release. Spring Security lead Rob Winch just announced Spring Security 5.0. The new release includes improved reactive support Java configuration and improved WebClient test support. Greg Turnquist, now lead of Spring Session MongoDB, has just announced 2.0.0.M1 What if an application could automatically repel attackers by rotating its access credentials every day, thereby making every stolen password useless in a short amount of time? That’s the idea behind CredHub, a new feature introduced for Pivotal Cloud Foundry today. Read the rest of this VentureBeat article for more. Dormain Drewitz chimes in with a look at some Secrets of successful Cloud Foundry users from the recent Cloud Foundry Summit. Jagdish Mirani looks at how HCSC uses Gemfire to help integrate legacy applications) in this post. Mark Heckler looks at filtering HTTP requests by header type in this concise post. Get preview chapters of Duncan Winn’s new book on Cloud Foundry from DynaTrace. TechCrunch looks at Cloud Foundry’s dominance in the enterprise: One of the things I loved was the insight that more than half of the Fortune 500 are using Cloud Foundry — wow! Tim Schimandle continues his series in this look at integrating an Angular 4 front end with his Spring Cloud backend. Tim Schimandle also wrote a nice introduction to distributed tracing with Spring Cloud Sleuth and Zipkin in this post. Tim Schimandle looks securing Spring Cloud Services. Tim Schimandle looks at how Spring Cloud applications bootstrap in this nice post. Mark Heckler does a great job introducing the fantastic Spring Boot Actuator integrations in Pivotal Cloud Foundry 1.1. [...]

Migrating to Java 9

Wed, 21 Jun 2017 10:01:00 GMT

Java 9, after many delays and failed votes, looks to be finally arriving this September.

Java 9 will bring several new features: enhancements to Streams, a REPL, improvements to Collections, among others. But by far the biggest and most controversial change is Jigsaw. Jigsaw is introducing modularity to the JDK, a long topic in and of itself, but it is one of the major reasons upgrading to Java 9 will be more difficult than previous major releases of Java.

Do We Care About Our Privacy?

Wed, 21 Jun 2017 07:01:00 GMT

We all are using private methods in our classes. There are two different ways to use them - one is good and valid while the second one is a hint that something can be wrong with our design.

First of all, we should consider why we are using these private methods. The main reason is breaking our code on smaller problems. We want to create more readable code - from our complicated method, we can create two smaller and consistent private methods. So instead of doing all the work in one method, we break up our code:

What Are Kotlin Progressions and Why Should You Care?

Wed, 21 Jun 2017 04:01:00 GMT

Life Is Great

One of the first things that you notice when you start learning Kotlin is the "nice" for loop syntax that it has:

for (i in 1..5) { // mm, so fancy!

Comparing Unsorted (Unordered) Whitespace in Different XML Files

Tue, 20 Jun 2017 20:01:00 GMT

Many developers struggle to compare XML files. There are a number of reasons for that, including:

  • Whitespace differences

A SonarQube Plugin for Kotlin (Part 2): Analyzing With ANTLR

Tue, 20 Jun 2017 13:35:59 GMT

Last week, we used ANTLR to generate a library to be able to analyze Kotlin code. It’s time to use the generated API to check for specific patterns.

API Overview

Let’s start by having a look at the generated API:

50 Common Java Errors and How to Avoid Them (Part 2)

Tue, 20 Jun 2017 13:35:54 GMT

In the last post, we covered 20 common compiler errors and what you could do to avoid them. Now, our focus is shifting to, though not exclusively focusing on, runtime exceptions and what leads to them. Follow along as we talk about 30 common exceptions and errors and where to look in your code to solve them.

21. “ArrayIndexOutOfBoundsException”

This is a runtime error message that occurs when the code attempts to access an array index that is not within the values. The following code would trigger this exception:

A Look at Spring Boot Admin

Tue, 20 Jun 2017 13:35:46 GMT

As part of microservices development, many of us are using Spring Boot along with Spring Cloud features. In the microservices world, we will have many Spring Boot applications running on both the same and different hosts. If we add Spring Actuator to the Spring Boot applications, we will get many out-of-the-box endpoints to monitor and interact with Spring Boot applications. The list is given below. ID Description Sensitive Default actuator Provides a hypermedia-based “discovery page” for the other endpoints. Requires Spring HATEOAS to be on the classpath. true auditevents Exposes audit events information for the current application. true autoconfig Displays an auto-configuration report showing all auto-configuration candidates and the reason why they ‘were’ or ‘were not’ applied. true beans Displays a complete list of all the Spring beans in your application. true configprops Displays a collated list of all @ConfigurationProperties. true dump Performs a thread dump. true env Exposes properties from Spring’s ConfigurableEnvironment. true flyway Shows any Flyway database migrations that have been applied. true health Shows application health information (when the application is secure, a simple ‘status’ when accessed over an unauthenticated connection or full message details when authenticated). false info Displays arbitrary application info. false loggers Shows and modifies the configuration of loggers in the application. true liquibase Shows any Liquibase database migrations that have been applied. true metrics Shows ‘metrics’ information for the current application. true mappings Displays a collated list of all @RequestMapping paths. true shutdown Allows the application to be gracefully shutdown (not enabled by default). true trace Displays trace information (by default the last 100 HTTP requests). true [...]

All About 'Finals'

Tue, 20 Jun 2017 13:35:43 GMT

A variable can be declared final. A final variable may only be assigned to once. It is a compile-time error if a final variable is assigned to unless it is definitely unassigned immediately prior to the assignment.

After the assignment of any final variable, it can never be altered. If the variable refers to any instance of any object, it will continue to refer to the same object instance, however, the internal state of the object can be modified.

Effectively Final

A variable can also be considered as effectively final if and only if:

Data Hiding Using JsonIgnore and Spring Data JPA

Tue, 20 Jun 2017 13:35:40 GMT

Data hiding using JsonIgnore and Spring Data JPA is achieved using two approaches:

  • @JsonIgnore and @JsonIgnoreProperties
  • Repository Detection Strategies

This post considers @JsonIgnore and @JsonIgnoreProperties.

Thoughts on Passing Oracle's Java Certifications

Mon, 19 Jun 2017 16:01:00 GMT

Java certification is highly regarded in IT Industry and provides a Java developer with recognition worldwide. It helps find a better job, get a better salary, and even a better raise or bonus at a current job. That's why thousands of Java developers try to become a certified every year, but success is not easy. Oracle's Java Certification has a tough passing percentage, close to 65% for both OCAJP (the Oracle Certified Associate Java Programmer) and OCPJP (the Oracle Certified Professional Java Programmer). You need in-depth knowledge of the Java language and API to succeed in the exam.

As a note, preparing for OCPJP is not very different from OCAJP, though you have to use resources that are focused only on OCPJP. You also need to cover more topics and more in-depth because OCPJP 8 is certainly a tough nut to crack.

Remove Scala Warts With WartRemover

Mon, 19 Jun 2017 10:01:00 GMT

Each time we write code, we are told to ‘maintain the coding standards’, yet many a time we fail to do so. Though there are tools that we use to help us in linting code, like scalastyle, scapegoat, scalafmt, scalariform, etc., they seem to be lacking, and it never seems enough to meet the standard. Basically, though we use all these tools, there are still warts and, therefore, here comes WartRemover to rescue us.

Now the question comes, "What’s WartRemover?"

Interactive Rebase in SourceTree

Mon, 19 Jun 2017 07:01:00 GMT

Some developers regard Git’s rebase feature as mysterious – even dangerous! While inexpert rebasing can indeed cause annoying problems for your teammates, rebase done right is perfectly safe. It’s also a handy way to clean things up before pushing to origin or merging back into master.

But ‘mysterious”? No need for that.

50 Common Java Errors and How to Avoid Them (Part 1)

Mon, 19 Jun 2017 04:01:00 GMT

There are many types of errors that could be encountered while developing Java software, but most are avoidable. We’ve rounded up 50 of the most common Java software errors, complete with code examples and tutorials to help you work around common coding problems.

For more tips and tricks for coding better Java programs, download our Comprehensive Java Developer’s Guide, which is jam-packed with everything you need to up your Java game – from tools to the best websites and blogs, YouTube channels, Twitter influencers, LinkedIn groups, podcasts, must-attend events, and more.