java maven
孤独者的狂欢
竹密何妨流水过,天高岂碍白云飞
展开
-
spring中aop编程中aop:aspect与aop:advisor的区别
转发自:https://www.jianshu.com/p/40f79da0cdef在开发过程中,不少有Spring Aop的使用,在面向切面编程时,我们会使用< aop:aspect>;在进行事务管理时,我们会使用< aop:advisor>。那么,对于< aop:aspect>与< aop:advisor>的区别,具体是怎样的呢?至于两者的区...原创 2020-02-25 00:01:08 · 190 阅读 · 0 评论 -
ActiveMQ之jdbc持久化订阅
JMS的基本概念和规范消息传递域 (JMS domains)也叫消息模式, 消息模型, 有2种:点对点(p2p)概念消息队列(Queue)提供者(Sender)消费者(Receiver)每个消息都被发送到一个特定的队列,接收者从队列中获取消息。队列保留着消息,直到他们被消费或超时。特点每个消息只有一个消费者(Consumer)(即一旦被消费,消息就不再在消息队列中)...原创 2020-02-24 21:03:22 · 126 阅读 · 0 评论 -
分页并高亮关键代码
//分页并高亮显示之多字段查询(multi_match) public List<Mytest> queryHighlightAndPageable(String keywords, Integer page, Integer pageSize) throws IOException { MultiMatchQueryBuilder queryBuilder =...原创 2020-02-23 20:56:37 · 322 阅读 · 0 评论 -
springboot整合shiro的整理
最近学习springboot和shiro,在这里整理一下两者的最简单整合。1、jar包:这里用parent统一jar包版本。<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent<...原创 2020-02-12 23:46:16 · 144 阅读 · 0 评论 -
浏览器如何从webapps目录上传、下载文件
首先jsp页面代码:<form method="post" action="<%= request.getContextPath()%>/user/file/upload" enctype="multipart/form-data"> <input type="file" name="upFile"> <input type=...原创 2020-02-06 18:13:28 · 647 阅读 · 0 评论 -
Field injection is not recommended怎么处理
参考文档:https://www.cnblogs.com/wang-yaz/p/9340156.html参考文档:http://www.pianshen.com/article/5023380349/首先我们需要明白使用@Autowired注入的三种方式:@Service("accountEmailService") 2 public class AccountEmailServiceIm...原创 2020-02-04 20:28:54 · 3047 阅读 · 1 评论 -
13、使用Mybatis-generator时出现配置文件generatorConfig.xml does not exist
1、第一种情况:Mybatis-generator路径需要绝对路径${project.basedir}/src/main/resources/generatorConfig.xml或者src/main/resources/generatorConfig.xml2、还有一种情况:可能你的文件名前面有空格。检查下你的路径命名和左侧配置文件命名;...原创 2020-02-04 18:58:09 · 2160 阅读 · 8 评论