Spring Boot 2.x中目前自带的主要JSON序列化和反序列化工具目前主要有:com.google.gson.Gson、com.fasterxml.jackson和org.yaml.snakeyaml.Yaml(用于yaml与json的转换): 平常的Web开发自带JSON包里用的最多的应该 ...
分类:
编程语言 时间:
2020-06-16 18:16:36
阅读次数:
361
1. 使用示例 1.在pom中添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> 2.使用aop注解 ...
分类:
编程语言 时间:
2020-06-16 15:39:07
阅读次数:
56
一.配置IDEA自动编译开启 1.打开顶部工具栏 File -> Settings (或者otherSettings -> Default Settings ) -> Build -> Compiler (或者ctrl+shift+A,输入Compiler)然后勾选 Build project au ...
分类:
其他好文 时间:
2020-06-16 14:45:14
阅读次数:
51
1.1 基础对象 #ctx:上下文对象 ${#ctx.locale} ${#ctx.variableNames} ${#ctx.request} ${#ctx.response} ${#ctx.session} ${#ctx.servletContext} #locale:直接访问java.util ...
分类:
编程语言 时间:
2020-06-15 22:54:30
阅读次数:
70
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId><exclusions><exclusion><groupId>org.springframewo
分类:
编程语言 时间:
2020-06-15 22:39:30
阅读次数:
67
问题来源: Spring Boot 项目集成 ActiveMQ。 报错内容: Description:Field jmsTemplate in XXX required a bean of type 'org.springframework.jms.core.JmsMessagingTemplate ...
分类:
编程语言 时间:
2020-06-15 21:17:09
阅读次数:
136
@Configuration @Configuration包含了@Component,所以被其注解的类自身也会被纳入到bean容器中,但是纳入的是经过cglib增强的子类(代理类)。 @Configuration标记的类必须符合下面的要求: 配置类必须以类的形式提供(不能是工厂方法返回的实例)。允许 ...
分类:
编程语言 时间:
2020-06-15 20:44:23
阅读次数:
51
Spring Boot整合JSP和Freemarker 写在前面 从零开始的Spring Boot(3、Spring Boot静态资源和文件上传) https://www.cnblogs.com/gaolight/p/13130406.html 一、Spring Boot整合JSP 创建工程spri ...
分类:
编程语言 时间:
2020-06-15 17:53:45
阅读次数:
62
ApplicationStartingEvent:springboot启动开始的时候执行的事件,在该事件中可以获取到SpringApplication对象,可做一些执行前的设置。 ApplicationEnvironmentPreparedEvent:spring boot 对应Enviroment ...
分类:
编程语言 时间:
2020-06-15 12:17:26
阅读次数:
53