
spring
书生乄夺命剑
我们来玩成语接龙吧,我先来,为所欲为~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
spring boot整合log4j2日志
版本 spring boot:2.0.3.RELEASE 1、引入maven依赖 <!--log4j2 start 不使用spring boot自带的logback--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <原创 2020-07-02 22:15:00 · 286 阅读 · 0 评论 -
spring 引入外部资源文件
开发过程中,经常使用到*.properties资源文件,其实可以把它们放在项目之外的某个地方,方便统一管理,尤其是很多项目的时候。 贴代码: springmvc-config.xml <!--1、在spring配置文件中加入下面代码--> <context:property-placeholder file-encoding="utf-8" ...原创 2018-09-16 17:26:27 · 2542 阅读 · 0 评论 -
springmvc4+thymeleaf简易教程(一)
thymeleaf整合springmvc与整合springboot不太一样,这里只介绍springmvc+thymeleaf的搭建。 1、文档结构图 2、pom.xml中加入依赖 <properties> <thymeleaf.version>2.1.2.RELEASE</thymeleaf.version> </prop...原创 2018-09-19 22:59:52 · 1135 阅读 · 0 评论 -
spring+mq实现异步处理
最近研究了一下spring/spring boot与activeMq的整合,花费了很多时间,也遇到了很多坑,工作之余,总结一下。 业务逻辑是这样的,有一个功能(比如用户注册)运行十分缓慢,但是实际需要发起请求之后马上提示“处理成功”而不关心是否真的处理成功,这种情况就可以交给MQ来处理。 本文章不再介绍springMVC的搭建与activeMq的安装,有需要的读者可以自行学习。 下面直接发布代码:...原创 2018-12-15 12:49:47 · 3154 阅读 · 2 评论 -
spring+mq常见错误
1、org.springframework.jms.support.converter.MessageConversionException: Cannot convert object of type [] to JMS message Request processing failed; nested exception is org.springframework.jms.support.c...原创 2018-12-17 22:05:36 · 1876 阅读 · 0 评论