mirror of
https://github.com/201206030/novel-plus.git
synced 2025-06-24 20:56:37 +00:00
集成elasticsearch搜索引擎
This commit is contained in:
@ -6,6 +6,15 @@ spring:
|
||||
active: dev
|
||||
include: alipay
|
||||
|
||||
|
||||
elasticsearch:
|
||||
#是否开启搜索引擎,1:开启,0:不开启
|
||||
enable: 0
|
||||
jest:
|
||||
uris: http://198.245.61.51:9200
|
||||
|
||||
|
||||
|
||||
jwt:
|
||||
secret: novel!#20191230
|
||||
expiration: 604800
|
||||
|
@ -34,8 +34,9 @@
|
||||
|
||||
</select>
|
||||
|
||||
<update id="addVisitCount" parameterType="long">
|
||||
update book set visit_count = visit_count + 1 where id = #{bookId}
|
||||
<update id="addVisitCount" >
|
||||
update book set visit_count = visit_count + 1 , update_time = #{date}
|
||||
where id = #{bookId}
|
||||
</update>
|
||||
|
||||
<select id="listRecBookByCatId" parameterType="int" resultType="com.java2nb.novel.entity.Book">
|
||||
|
Reference in New Issue
Block a user