Half way into this and I already think it’s the wrong approach. I think it’s way better to just go thru an exiting starter that’s more common. Start with why you want to develop your own starter and what they allow you to do.
@JavaAnatomy2 жыл бұрын
@ConditionalOnClass({ Flyway.class }) how does Spring achieve this. Flyway is not defined, or the library that defines this class does not exist, not in class-path. How does this code compile? I tried to do the same and my code could not run. I am curious how Spring manages to achieve this? With My java Knowledge, I can only think of this happening by making the libraries available during compilation only?