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
3.8k views
in Technique[技术] by (71.8m points)

Springboot2.2 获取SessionFactory问题

获取SessionFactory做如下实现
图片.png
启动会提示entityManagerFactory为null
但是看代码Springboot已经做了实现图片.png
而且在图片.png
这里可以获取到,求大神解惑其中缘由。
springboot使用的版本是2.2.10.RELEASE,要如何获取SessionFactory???


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
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

2.1m questions

2.1m answers

60 comments

57.0k users

...