I am writing a springboot application which uses mybatis for persistence. I am trying to build using gradlew.sh (a gradle builder shell). The directory structure is like the following
MyApp
└── src
└── main
└── java
└── resources-dev
└── org
└── myapp
└── mappers
The mappers directory contains xml mappers for mybatis. When I run ./gradlew.sh , neither the xml files nor any other non-java file is packaged into my jar. what am I missing?
The conventional location for classpath resources is "src/main/resources". If you stick to the convention (from Gradle not from Spring) you will have an easier time, although I'm sure there is a way to customize the build config if you read the Gradle docs.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments