Secret Tecniques To Improve Dependency Resolution On App Class Loader

Written by camposer | Published 2020/11/20
Tech Story Tags: spring-boot | java | java-classloaders | hacks | spring | backend | software-development | programming | web-monetization

TLDR Rodolfo Campos has developed a way to tweak the Java Class Loading System. The App Class Loader would pick any class available in your classpath before going to check your dependencies. For that reason, if you add a class with the same qualified name -that respects the original contract- you could “hack” the dependency behaviour. The original BasicTextEncryptor used a PBEWithMD5AndDES algorithm and the ‘new’ implementation looks like this:.* Overrides the original implementation with a Caesar Cipher Algorithm.via the TL;DR App

no story

Written by camposer | Family man and tech geek - passionate about Software & Data Engineering, and Entrepreneurship
Published by HackerNoon on 2020/11/20