You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's true. It turned out my xml missed the definition of the . This is a reason why was empty. However, it would be nice to see this error in the log as it takes some time to figure it out.
I've fixed this issue.
Change to output a warning log when 'mapperLocations' was specified but matching resources are not found. If you want to prevent a warning log on production environment, please change log level of SqlSessionFactoryBean to error or higher.
kazuki43zoo
changed the title
MapperLocations property contains invalid url and no exception is thrown
output a warning log when 'mapperLocations' was specified but matching resources are not found
Apr 5, 2019
kazuki43zoo
changed the title
output a warning log when 'mapperLocations' was specified but matching resources are not found
Output a warning log when 'mapperLocations' was specified but matching resources are not found
Apr 5, 2019
pulllock
pushed a commit
to pulllock/mybatis-spring
that referenced
this issue
Oct 19, 2023
I found out someting interesting. mapperLocations property in my xml configuration file points to non-existing path:
Still org.mybatis.spring.SqlSessionFactoryBean reports no exception.
this.mapperLocations is empty and execution continues.
In my case the correct link to the mapper is:
classpath_:/com/missing_entry/state/persistence/mapper/_.xml
Should not the exception be thrown ?
I use mybatis-spring.1.2.0.
The text was updated successfully, but these errors were encountered: