没有梦想,何必远方

摘要: package util; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.net.URLEncoder; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; im... 阅读全文
posted @ 2019-03-08 22:59 北极丶光 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 1.添加拦截器 2、创建监听器 3、添加监听器 4、项目启动时初始化操作(例如初始化项目根路径) 阅读全文
posted @ 2019-03-08 22:03 北极丶光 阅读(948) 评论(0) 推荐(0) 编辑
摘要: package com.jy.config.redis; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.PropertyAccessor; import com.fasterxml.jackson.databind.ObjectMapper; i... 阅读全文
posted @ 2019-03-08 21:49 北极丶光 阅读(4225) 评论(0) 推荐(1) 编辑
摘要: 2.springboot 结合shiro的配置类 阅读全文
posted @ 2019-03-08 21:42 北极丶光 阅读(350) 评论(0) 推荐(0) 编辑
摘要: package com.jy..config; import com.alibaba.druid.pool.DruidDataSource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.... 阅读全文
posted @ 2019-03-08 21:33 北极丶光 阅读(2538) 评论(0) 推荐(0) 编辑
摘要: 1、依赖关系 2.代码 阅读全文
posted @ 2019-03-08 21:29 北极丶光 阅读(368) 评论(0) 推荐(0) 编辑
摘要: package com.lucene.util; import com.zxf.lucene.analyzer.lucene.IKAnalyzer; import com.zxf.lucene.common.consts.SortType; import com.zxf.lucene.dto.DocumentSearchDto; import org.apache.lucene.analysi... 阅读全文
posted @ 2019-03-08 21:25 北极丶光 阅读(579) 评论(0) 推荐(0) 编辑
摘要: 1、需要添加的依赖 2、索引创建及测试 阅读全文
posted @ 2019-03-08 20:57 北极丶光 阅读(657) 评论(0) 推荐(0) 编辑
摘要: #application.properties常用配置 server.port=8086 # bind to a specific NIC server.address=0.0.0.0 #server.address=127.0.0.1 # the context path, defaults to '/' #设置以后请求映射变为 http:ip:port/demo/....对应controll... 阅读全文
posted @ 2019-03-08 19:18 北极丶光 阅读(800) 评论(0) 推荐(0) 编辑
摘要: 1、logback需要引入的依赖 2、logback.xml的配置 3、如果是在springboot中使用,可以application.properties中添加 阅读全文
posted @ 2019-03-08 19:11 北极丶光 阅读(250) 评论(0) 推荐(0) 编辑