← 返回首页
GitHub - CodelyTV/java-solid-examples: Learn SOLID principles by examples in Java · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

CodelyTV/java-solid-examples

 master
Go to file
Code

Repository files navigation

More items

☕⚛ SOLID principles examples in Java

⚛ Learn SOLID principles by examples

ℹ️ Introduction

This is a repository intended to serve as illustrative examples for the course "Principios SOLID Aplicados" (Spanish).

🏁 How To Start

  1. Install Java 8: brew cask install corretto8
  2. Set it as your default JVM: export JAVA_HOME='/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home'
  3. Clone this repository: git clone https://github.com/CodelyTV/java-solid-examples.
  4. Execute some Gradle lifecycle tasks in order to check everything is OK:
    1. Create the project JAR: make build
    2. Run the tests and plugins verification tasks: make test
  5. Start playing around with the different examples of each SOLID principle. You have explanations here and in the test code 🙂

☝️ How to update dependencies

💡 Related repositories

☕ Java

🐘 PHP

🧬 Scala

Liskov Substitution Principle (LSP)

Dependency Inversion Principle (DIP)

About

This hopefully helpful examples have been implemented by CodelyTV and contributors.

Pull Requests are welcome. We would suggest oppening an issue before actually coding your Pull Request in order to ask for feedback 🙂

License

The MIT License (MIT). Please see License for more information.

Releases

No releases published

Packages

 
 
 

Contributors

Footer

© 2026 GitHub, Inc.