- 博客(6)
- 收藏
- 关注
原创 spring-activemq===消息产生方XML配置以及部分代码(===备忘====)
<?xml version="1.0" encoding="UTF-8"?> <!-- 真正可以产生Connection的ConnectionFactory,由对应的 JMS服务厂商提供--> <bean id="targetConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFacto.
2018-11-18 21:00:54 271
原创 applicationContext-jms-consumer===消息消费方xml 配置以及部分代码(备忘)
<?xml version="1.0" encoding="UTF-8"?> <!-- 真正可以产生Connection的ConnectionFactory,由对应的 JMS服务厂商提供--> <bean id="targetConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFacto.
2018-11-18 20:57:09 252
原创 fastjson解析json时报错 class not has default constructor以及数据不对时,提示解析相关的字符串错误
fastjson解析json时报错 class not has default constructor class not has default constructor 严重: Servlet.service() for servlet [springmvc] in context with path [] threw exception [Request processing failed;...
2018-11-12 20:23:16 585
原创 Solr===>>查询结果高亮显示===>>代码仅将查询到的第一个solr域中的第一个值高亮显示
// 查询结果高亮显示 public Map&amp;amp;lt;String, Object&amp;amp;gt; searchHightLight(Map searchMap){ Map map=new HashMap(); HighlightQuery query = new SimpleHighlightQuery(); //===========设置高亮相关的选项============= // ...
2018-11-12 20:22:56 541
原创 高亮显示查询的字段==>>前端代码: 使用AngularJS框架
测试后发现高亮显示的 html 代码原样输出,这是 angularJS 为了防止 html 攻击采取的安全机制. 要用到$sce 服务的 trustAsHtml 方法来实现转换。 通过 angularJS 的过滤器来简化开发,这样只写一次,调用的时候就非常方便 一 先在前端的page.js中 编写过滤器 // 定义模块: var app = angular.module(&quot;xxx&quot;,[]); /*...
2018-11-12 20:22:51 300
原创 XML配置文件中 第一行的xml标志行,因为前面多了空格 运行的时候提示解析XML错误
XML配置文件中 第一行的xml标志行,因为前面多了空格 运行的时候提示解析XML错误 java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadCon...
2018-11-12 20:22:21 2461 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人