Code Monkey home page Code Monkey logo

reddit-clone's Introduction

reddit-clone's People

Watchers

 avatar

reddit-clone's Issues

Error Bean

. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v2.5.1)

2021-06-26 23:10:15.355 INFO 6096 --- [ main] com.app.reddit.RedditApplication : Starting RedditApplication using Java 11.0.10 on DESKTOP-058URK9 with PID 6096 (D:\Dev\Projets\reddit\target\classes started by ng738 in D:\Dev\Projets\reddit)
2021-06-26 23:10:15.358 INFO 6096 --- [ main] com.app.reddit.RedditApplication : No active profile set, falling back to default profiles: default
2021-06-26 23:10:16.024 INFO 6096 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2021-06-26 23:10:16.025 INFO 6096 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-06-26 23:10:16.058 INFO 6096 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data JPA - Could not safely identify store assignment for repository candidate interface com.app.reddit.repository.CommentRepository. If you want this repository to be a JPA repository, consider annotating your entities with one of these annotations: javax.persistence.Entity, javax.persistence.MappedSuperclass (preferred), or consider extending one of the following types with your repository: org.springframework.data.jpa.repository.JpaRepository.
2021-06-26 23:10:16.109 INFO 6096 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 77 ms. Found 5 JPA repository interfaces.
2021-06-26 23:10:16.124 INFO 6096 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2021-06-26 23:10:16.125 INFO 6096 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-06-26 23:10:16.136 INFO 6096 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.app.reddit.repository.CommentRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
2021-06-26 23:10:16.136 INFO 6096 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.app.reddit.repository.PostRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
2021-06-26 23:10:16.137 INFO 6096 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.app.reddit.repository.SubredditRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
2021-06-26 23:10:16.137 INFO 6096 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.app.reddit.repository.TokenRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
2021-06-26 23:10:16.137 INFO 6096 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.app.reddit.repository.UserRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
2021-06-26 23:10:16.137 INFO 6096 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.app.reddit.repository.VoteRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
2021-06-26 23:10:16.138 INFO 6096 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 6 ms. Found 0 Redis repository interfaces.
2021-06-26 23:10:16.536 INFO 6096 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2021-06-26 23:10:16.543 INFO 6096 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2021-06-26 23:10:16.543 INFO 6096 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.46]
2021-06-26 23:10:16.620 INFO 6096 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2021-06-26 23:10:16.620 INFO 6096 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1218 ms
2021-06-26 23:10:17.246 INFO 6096 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-06-26 23:10:17.273 INFO 6096 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.32.Final
2021-06-26 23:10:17.337 INFO 6096 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-06-26 23:10:17.395 INFO 6096 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2021-06-26 23:10:17.493 INFO 6096 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2021-06-26 23:10:17.506 INFO 6096 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL10Dialect
Hibernate: create table post (post_id int8 not null, creation_date timestamp, description text, post_title varchar(255), url varchar(255), vote_count int4, id int8, user_id int8, primary key (post_id))
Hibernate: create table sub_reddit (id int8 not null, creation_date timestamp, description varchar(255), name varchar(255), user_user_id int8, primary key (id))
Hibernate: create table sub_reddit_posts (sub_reddit_id int8 not null, posts_post_id int8 not null)
Hibernate: create table token (id int8 generated by default as identity, expiration_date timestamp, token varchar(255), user_user_id int8, primary key (id))
Hibernate: create table users (user_id int8 not null, account_status boolean not null, creation_date timestamp, email varchar(255), password varchar(255), username varchar(255), primary key (user_id))
Hibernate: create table vote (vote_id int8 not null, vote_type int4, post_id int8 not null, user_id int8, primary key (vote_id))
Hibernate: alter table if exists sub_reddit_posts drop constraint if exists UK_ho8btgfhvjhu38ba76s4xrq9a
2021-06-26 23:10:18.038 WARN 6096 --- [ main] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Warning Code: 0, SQLState: 00000
2021-06-26 23:10:18.038 WARN 6096 --- [ main] o.h.engine.jdbc.spi.SqlExceptionHelper : la contrainte « uk_ho8btgfhvjhu38ba76s4xrq9a » de la relation « sub_reddit_posts » n'existe pas, ignore
Hibernate: alter table if exists sub_reddit_posts add constraint UK_ho8btgfhvjhu38ba76s4xrq9a unique (posts_post_id)
Hibernate: create sequence hibernate_sequence start 1 increment 1
Hibernate: create sequence seq_post start 1 increment 1
Hibernate: create sequence seq_sub start 1 increment 1
Hibernate: create sequence seq_user start 1 increment 1
Hibernate: alter table if exists post add constraint FK7a2253t8jlohhgpakfmq4g6g1 foreign key (id) references sub_reddit
Hibernate: alter table if exists post add constraint FK7ky67sgi7k0ayf22652f7763r foreign key (user_id) references users
Hibernate: alter table if exists sub_reddit add constraint FK8ct7vyw2ik8y10r4jciai7qx5 foreign key (user_user_id) references users
Hibernate: alter table if exists sub_reddit_posts add constraint FKnv9c3d47lvv063bq4eqf417ol foreign key (posts_post_id) references post
Hibernate: alter table if exists sub_reddit_posts add constraint FKfpmlvtj003jf5jk71t3oblmq4 foreign key (sub_reddit_id) references sub_reddit
Hibernate: alter table if exists token add constraint FK22ancosgvhuh4upst1n4vn6am foreign key (user_user_id) references users
Hibernate: alter table if exists vote add constraint FKl3c067ewaw5xktl5cjvniv3e9 foreign key (post_id) references post
Hibernate: alter table if exists vote add constraint FKkmvvqilx49120p47nr9t56omf foreign key (user_id) references users
2021-06-26 23:10:18.061 INFO 6096 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2021-06-26 23:10:18.067 INFO 6096 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2021-06-26 23:10:18.342 WARN 6096 --- [ main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2021-06-26 23:10:18.461 WARN 6096 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'postController' defined in file [D:\Dev\Projets\reddit\target\classes\com\app\reddit\controller\PostController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'postService' defined in file [D:\Dev\Projets\reddit\target\classes\com\app\reddit\service\PostService.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.app.reddit.repository.CommentRepository' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
2021-06-26 23:10:18.462 INFO 6096 --- [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2021-06-26 23:10:18.463 INFO 6096 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2021-06-26 23:10:18.472 INFO 6096 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
2021-06-26 23:10:18.474 INFO 6096 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2021-06-26 23:10:18.482 INFO 6096 --- [ main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-06-26 23:10:18.496 ERROR 6096 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Parameter 3 of constructor in com.app.reddit.service.PostService required a bean of type 'com.app.reddit.repository.CommentRepository' that could not be found.

Action:

Consider defining a bean of type 'com.app.reddit.repository.CommentRepository' in your configuration.

Process finished with exit code 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.