集成elasticsearch搜索引擎

This commit is contained in:
xiongxiaoyang
2020-05-20 18:08:29 +08:00
parent 4aa6b82143
commit 8a628f081f
14 changed files with 564 additions and 21 deletions

View File

@ -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

View File

@ -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">