dao层报required a bean of type ‘ ‘ that could not be found.

现象:
dao层报required a bean of type ’ ’ that could not be found.
原因:
配置文件未配置数据源
结论:
mybatis层不会捕获数据源异常,相反直接返回null

猜你喜欢

转载自blog.csdn.net/qq_42859864/article/details/120209639