DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Image Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones Build AI Agents That Are Ready for Production
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
Build AI Agents That Are Ready for Production

Join our live webinar on May 6 at 1 PM ET to see how Agentic AI generates real-time DevOps playbooks.

Avatar

Serguei Cambour

Software Engineer at Capgemini Engineering

Tournai, BE

Joined Apr 2007

Stats

Reputation: 173
Pageviews: 0
Articles: 0
Comments: 12
  • Comments

Nothing here yet! Would you like to post an article?

Comments

Introduction To Spring Data JPA With Inheritance in A REST Application

Aug 09, 2023 · Otavio Santana

Thank you for sharing! One point which is rather about code convention, - you don't need to prefix with `this` when calling finder methods on a repository instance in the controller:

```

this.repository.findAll(...)

```

It's getting too noisy to read the code and the compiler will do it for you. Usually, you should use it only when assigning a new value.

Top Microservices Frameworks

Jun 02, 2021 · Ravi Kiran Mallidi

I'd say that the term itself "Microservice framework" is totally wrong. You can provide an API using this or another language (Java, Go etc.). Why not mention Ruby or Elixir for example, - both can be used in mode API at ease.

Visitor Design Pattern In Java

Oct 23, 2020 · Brijesh Saxena

Thank you for sharing. Two points though:

1. I don't see the need to call `super` in the abstract class `Customer`.

2. You should use either a threshold value to get more accuracy or even better use BigDecimal with compareTo() method to compare 2 double values, never use just '=='.

Jackson Annotations for JSON (Part 4): General Annotations

Jul 30, 2020 · Mike Gates

I think you don't need to annotate name attribute with

@JsonProperty("name")

as it will be the same by default, - use it only if the JSON attribute name is different from Java one.

5 Practices to Eliminate Bad Code

May 23, 2020 · Blake Ethridge

So true and applied to the current team and project I joined since 4 months.

Guide for Supporting Multiple Versions of Java (8, 11, 14) in Your Maven Project

May 05, 2020 · Saša Starčević

Thank you very much for sharing, really useful!

Accessing Git Repos With Java Using SSH Keys

Dec 28, 2017 · Mike Gates

Thank you for sharing, Sebastian ! It would be great to indicate the type of git variable in the the following expresion:


Git.cloneRepository()


 .setDirectory(workingDir)


 .setTransportConfigCallback(transportConfigCallback)


 .setURI("ssh://example.com/repo.git")


 .call();


Regards


Put Your Java 8 Method References to Work

Aug 09, 2017 · Per-Åke Minborg

Thank you for sharing ! Sure, Java has still a long way to go to get more readability compared to Ruby for example.

Visitor Pattern Tutorial with Java Examples

Aug 01, 2017 · James Sugrue

If we consider that calling a method is as if we are sending a message, in this case used methods names (accept, visit) are so cumberscome and just bring the ambiguity.

REST With Java 8

Nov 30, 2016 · Unni Mana

yep, correct :)

REST With Java 8

Nov 30, 2016 · Unni Mana

Ar least the last 3 versions have it.

REST With Java 8

Nov 30, 2016 · Unni Mana

It is a little bit outdated to create a Maven-aware project like that (create a testrest folder, then src/main/java folder, etc.). As in the very beginning you were using Eclipse IDE, why not just ask Eclipse to create an empty Maven project ? In this case you don't need to run mvn eclipse:eclipse any more.

It seems like some dependencies are missing (slf4j):

mvn exec:java -Dexec.mainClass="com.controller.HelloRest"

I got the below error:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

User has been successfully modified

Failed to modify user

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook
Advertisement
Advertisement