redis repository 자동 스캔 비활성화
This commit is contained in:
parent
2ba798b606
commit
e38ed331b6
|
@ -1,21 +0,0 @@
|
||||||
package kr.co.vividnext.sodalive
|
|
||||||
|
|
||||||
import org.springframework.boot.ApplicationArguments
|
|
||||||
import org.springframework.boot.ApplicationRunner
|
|
||||||
import org.springframework.context.ApplicationContext
|
|
||||||
import org.springframework.data.redis.core.RedisTemplate
|
|
||||||
import org.springframework.data.repository.CrudRepository
|
|
||||||
import org.springframework.stereotype.Component
|
|
||||||
|
|
||||||
@Component
|
|
||||||
class RedisBeanInspector(val ctx: ApplicationContext) : ApplicationRunner {
|
|
||||||
override fun run(args: ApplicationArguments?) {
|
|
||||||
ctx.getBeansOfType(RedisTemplate::class.java).forEach { (name, bean) ->
|
|
||||||
println("RedisTemplate Bean: $name -> $bean")
|
|
||||||
}
|
|
||||||
|
|
||||||
ctx.getBeansOfType(CrudRepository::class.java).forEach { (name, bean) ->
|
|
||||||
println("CrudRepository Bean: $name -> ${bean.javaClass}")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -3,8 +3,6 @@ server:
|
||||||
|
|
||||||
logging:
|
logging:
|
||||||
level:
|
level:
|
||||||
org.springframework.data.redis.core: DEBUG
|
|
||||||
org.springframework.data.redis.connection: DEBUG
|
|
||||||
com:
|
com:
|
||||||
amazonaws:
|
amazonaws:
|
||||||
util:
|
util:
|
||||||
|
@ -54,6 +52,10 @@ jwt:
|
||||||
secret: ${JWT_SECRET}
|
secret: ${JWT_SECRET}
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
|
data:
|
||||||
|
redis:
|
||||||
|
repositories:
|
||||||
|
enabled: false
|
||||||
valkey:
|
valkey:
|
||||||
host: ${VALKEY_HOST}
|
host: ${VALKEY_HOST}
|
||||||
port: ${VALKEY_PORT}
|
port: ${VALKEY_PORT}
|
||||||
|
|
Loading…
Reference in New Issue