increaseViewCount

@Modifying
@Query(value = " update Article a set a.viewCount = a.viewCount + 1 where a.id = :id")
abstract fun increaseViewCount(id: Long): Int

조회수 증가 메소드

Parameters

id

게시글 ID