the program can run normally, but as long as it uses Spring test, it will make an error
Binding Invalid bound statement (not found) can only find XML
Debug finds a point when sessionFactory.setMapperLocation
classpath is mapped to target/test-classes so that resources cannot be found and normal startup is target/classes
but most of the online practices for mapper-location are
classpath: * * / xml
and there is no problem using @ Test testing
Why is this the case with @ test classpath here?
so how to find this mapper.xml in both test and normal operation now
I checked a lot and couldn"t find what I missed
Don"t say transfer mapper to the package, this is how my previous project was configured.
I just want to know why I failed to configure online. I don"t know much about Spring boot test
Thank you