Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
96 views
in Technique[技术] by (71.8m points)

springboot多数据源问题

springboot项目,配置了三个数据源a、b、c,但是启动后,去调用c数据的方法报错了,调用a,b都是没问题的。

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

然后我试了,只启用a、b,调用方法没问题。
只启用a、c,调用方法也没问题。
因为项目启动会从a数据源里读取数据,所以试不了b、c。
不知道到底是什么原因导致这样的。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...