DEV Community

Tuan
Tuan

Posted on

Cách gì làm tôi hiểu sâu hơn về Java/Java Spring Boot

Vì tôi đang code bằng IDE VSCode, nên khi bắt đầu tiếp xúc và làm với Java Spring Boot, tôi đã cài 2 thứ khiến tôi dễ hiểu, tiếp cận nhanh hơn với Java cũng như code được clean hơn khi đi từ NodeJS qua.

1. Java format

Trong file settings.json, cài đặt như sau để IDE auto format code khi saved

"java.format.settings.url": "https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml",
  "java.format.settings.profile": "GoogleStyle",
  "[java]": {
      "editor.formatOnSave": true,
      "editor.defaultFormatter": "redhat.java",
      "editor.tabSize": 2
  },
Enter fullscreen mode Exit fullscreen mode

2. Java checker (important) - SonarLint

Install https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarlint-vscode

SonarLint có các cảnh bảo về clean code, security, design pattern,... một cách chi tiết rõ ràng. Từ đó tôi hiểu được sâu và rõ hơn về Java Spring Boot

Ví dụ:

Image description

Image description

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

While many AI coding tools operate as simple command-response systems, Qodo Gen 1.0 represents the next generation: autonomous, multi-step problem-solving agents that work alongside you.

Read full post →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more