Skip to content

Improve mapper resource failure diagnostics - #1276

Merged
hazendaz merged 1 commit into
mybatis:masterfrom
DragonFSKY:fix/issue-792-mapper-resource-diagnostics
Sep 5, 2026
Merged

Improve mapper resource failure diagnostics#1276
hazendaz merged 1 commit into
mybatis:masterfrom
DragonFSKY:fix/issue-792-mapper-resource-diagnostics

Conversation

@DragonFSKY

@DragonFSKY DragonFSKY commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Report mapper resource opening failures separately from XML parsing failures.
  • Suggest resolving wildcard locations with ResourcePatternResolver.getResources() before calling setMapperLocations(...).
  • Preserve the existing parse-failure diagnostic and ErrorContext reset behavior.

Closes #792

Testing

  • ./mvnw verify (225 tests, 0 failures, 0 errors, 15 skipped)
  • git diff --check

@coveralls

coveralls commented Jul 18, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 90.616% (+0.2%) from 90.381% — DragonFSKY:fix/issue-792-mapper-resource-diagnostics into mybatis:master

@DragonFSKY
DragonFSKY force-pushed the fix/issue-792-mapper-resource-diagnostics branch from 6fa0ecc to 0a4b715 Compare August 25, 2026 15:34
@DragonFSKY
DragonFSKY force-pushed the fix/issue-792-mapper-resource-diagnostics branch from 0a4b715 to 955f72d Compare August 26, 2026 06:21
@DragonFSKY
DragonFSKY marked this pull request as ready for review August 30, 2026 09:57
@hazendaz
hazendaz merged commit 5545811 into mybatis:master Sep 5, 2026
13 checks passed
@hazendaz hazendaz self-assigned this Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SqlSessionFactoryBean single resource, using wildcard causes a IOException

3 participants