2017-10-11 7 views
0

私はSpringブートがConnectionを休止状態にするときに次の問題が発生します。Springブートの休止状態でUnsatisfiedDependencyExceptionを解決するにはどうすればよいですか?

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bookController': Unsatisfied dependency expressed through field 'bookService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bookServiceImp': Unsatisfied dependency expressed through field 'bookDao'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bookDaoImp': Unsatisfied dependency expressed through field 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getSessionFactory' defined in class path resource [com/go/myapp/Config/AppConfig.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] 
+0

こんにちは。質問をして質問を更新する方法の詳細については、 の[ask]リンクを参照してください。 –

答えて

0

mavenでプロジェクトをビルドする場合は、pomファイルを探します。依存関係を追加すると、それらの依存関係の依存関係がコンパイルされます。例SpringBootスターター1.5.8.Releaseがhttps://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter/1.5.8.RELEASE

SpringBoot 1.5.8.Release SpringCore 4.3.12.Release

を持っているためにだからあなたの依存関係を確認し、そこに依存関係をコンパイルしてください。 POMファイルを投稿すると便利です。

関連する問題