문제

Description:

Field userRepository in com.pgsb.api.security.JwtTokenFilter required a bean of type 'com.pgsb.core.user.UserRepository' 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 'com.pgsb.core.user.UserRepository' in your configuration.

원인

해결

spring:
  profiles: dev
  datasource:
    # dirver-class-name: org.postgresql.Driver URL로부터 추론하므로 굳이 명시 불필요
    url: jdbc:postgresql://localhost:5432/aimpugn01
    username: aimpugn
    password: aimpugn
dependencies {
    implementation group: 'org.postgresql', name: 'postgresql', version: '42.2.19'  // postgres driver
}