Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

springboot多数据源配置启动一直报这个错啊,请问时怎么回事? #15

Open
wccJava opened this issue Jun 5, 2019 · 5 comments

Comments

@wccJava
Copy link

wccJava commented Jun 5, 2019

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userMapper' defined in file [D:\IDEA\idea2019\springboot\springboot-datasource\target\classes\com\spring\datasource\mapper\UserMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required

@lzyqssn
Copy link

lzyqssn commented Jun 5, 2019 via email

@wccJava
Copy link
Author

wccJava commented Jun 5, 2019

@lzyqssn 感谢您的回答!我仔细看了demo发现并没有对这两点进行注入,如果注入,请问如何注入?

@lzyqssn
Copy link

lzyqssn commented Jun 5, 2019 via email

@wccJava
Copy link
Author

wccJava commented Jun 5, 2019

@lzyqssn 我明天把工程打包发您邮件,如果您有空可以帮我看看!感谢!

@wccJava
Copy link
Author

wccJava commented Jun 6, 2019

@lzyqssn 您好我已经发送demo到您的邮箱上了,您有空可以的话指点一下!谢谢!

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

No branches or pull requests

2 participants