SpringBoot DataJpa
CheekatlaAchyuth111 opened this issue · 1 comments
Most important thing is Student_tbl is creating a table in Database(oracle) but where as Data is not inserting into the Table....
2019-02-07 10:14:14.336 INFO 9900 --- [ main] i.i.A.StudentSpringBootApplication : Starting StudentSpringBootApplication on ACHYUTH with PID 9900 (D:\SpringToolSuit\StudentSpringBoot\target\classes started by Achyuth in D:\SpringToolSuit\StudentSpringBoot)
2019-02-07 10:14:14.336 INFO 9900 --- [ main] i.i.A.StudentSpringBootApplication : No active profile set, falling back to default profiles: default
2019-02-07 10:14:14.961 INFO 9900 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2019-02-07 10:14:14.977 INFO 9900 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 16ms. Found 0 repository interfaces.
2019-02-07 10:14:15.534 INFO 9900 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2019-02-07 10:14:16.270 INFO 9900 --- [ main] com.zaxxer.hikari.pool.PoolBase : HikariPool-1 - Driver does not support get/set network timeout for connections. (oracle.jdbc.driver.T4CConnection.getNetworkTimeout()I)
2019-02-07 10:14:16.285 INFO 9900 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2019-02-07 10:14:16.348 INFO 9900 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
name: default
...]
2019-02-07 10:14:16.473 INFO 9900 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.3.7.Final}
2019-02-07 10:14:16.473 INFO 9900 --- [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2019-02-07 10:14:16.754 INFO 9900 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.4.Final}
2019-02-07 10:14:16.982 INFO 9900 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.Oracle12cDialect
2019-02-07 10:14:17.144 INFO 9900 --- [ main] org.hibernate.type.BasicTypeRegistry : HHH000270: Type registration [byte[]] overrides previous : org.hibernate.type.BinaryType@15fb7a32
2019-02-07 10:14:17.144 INFO 9900 --- [ main] org.hibernate.type.BasicTypeRegistry : HHH000270: Type registration [[B] overrides previous : org.hibernate.type.BinaryType@15fb7a32
2019-02-07 10:14:17.144 INFO 9900 --- [ main] org.hibernate.type.BasicTypeRegistry : HHH000270: Type registration [Byte[]] overrides previous : org.hibernate.type.WrapperBinaryType@57adfab0
2019-02-07 10:14:17.144 INFO 9900 --- [ main] org.hibernate.type.BasicTypeRegistry : HHH000270: Type registration [[Ljava.lang.Byte;] overrides previous : org.hibernate.type.WrapperBinaryType@57adfab0
2019-02-07 10:14:18.174 INFO 9900 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2019-02-07 10:14:18.218 WARN 9900 --- [ main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'studentService': Unsatisfied dependency expressed through field 'repository'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'info.inetsolv.repo.StudentRepository' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
2019-02-07 10:14:18.218 INFO 9900 --- [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2019-02-07 10:14:18.234 INFO 9900 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2019-02-07 10:14:18.234 INFO 9900 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
2019-02-07 10:14:18.250 INFO 9900 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-02-07 10:14:18.422 ERROR 9900 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
Field repository in info.inetsolv.service.StudentService required a bean of type 'info.inetsolv.repo.StudentRepository' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'info.inetsolv.repo.StudentRepository' in your configuration.
This guide is for MongoDB.