Skip to content

Instantly share code, notes, and snippets.

@michael-simons
Last active April 13, 2021 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michael-simons/f34718e05e287896b3d0fcc165fb7e1f to your computer and use it in GitHub Desktop.
Save michael-simons/f34718e05e287896b3d0fcc165fb7e1f to your computer and use it in GitHub Desktop.
Who said it is hard to run Spring applications on modules?
module neo4jonmodules {
requires spring.beans;
requires spring.boot;
requires spring.boot.autoconfigure;
requires spring.data.neo4j;
// Well, the object mapper uses reflection, little surprising
opens com.example.cypherdsljava11test to spring.core;
// And yep, if we want to create beans from that package, it must be exported
exports com.example.cypherdsljava11test to spring.beans, spring.context, spring.data.commons;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment