摘要: 在看定义注解的相关文章的时候,看到这个@Inherited注解,简单的说明并没有真正搞懂是什么意思。在网上搜索了一些相关的内容,现在把一篇文章转载过来。以便后面使用。 文章出处,转载地址:(http://zy19982004.iteye.com/blog/1979520),在此特别感谢! @Inhe 阅读全文
posted @ 2018-12-26 11:43 kelelipeng 阅读(1092) 评论(0) 推荐(0) 编辑
摘要: 前言: 当它请求的一个资源是从一个与它本身提供的第一个资源的不同的域名时,一个资源会发起一个跨域HTTP请求(Cross-site HTTP request)。比如说,域名A ( http://domaina.example ) 的某 Web 应用程序中通过< img>标签引入了域名B( http: 阅读全文
posted @ 2018-12-26 11:13 kelelipeng 阅读(255) 评论(0) 推荐(0) 编辑
摘要: spring boot——MockMvc的用法 spring boot——MockMvc的用法 https://www.cnblogs.com/0201zcr/p/5756642.html (辅助参考) 1.pom配置 <dependency> <groupId>org.springframewor 阅读全文
posted @ 2018-12-26 11:00 kelelipeng 阅读(529) 评论(0) 推荐(0) 编辑
摘要: A Spring boot(10) 基础学习内容 B SpringBoot(16) 基础学习内容 阅读全文
posted @ 2018-12-25 16:25 kelelipeng 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 关于Spring @RequestBody 自动映射模型 2016年10月18日 22:17:12 稻子丶 阅读数:5049 关于Spring @RequestBody 自动映射模型 2016年10月18日 22:17:12 稻子丶 阅读数:5049 关于Spring @RequestBody 自动 阅读全文
posted @ 2018-12-24 18:59 kelelipeng 阅读(930) 评论(0) 推荐(0) 编辑
摘要: 一、问题描述 由于项目是前后端分离,因此后台使用的是spring boot,做成微服务,只暴露接口。接口设计风格为restful的风格,在get请求下,后台接收参数的注解为RequestBody时会报错;在post请求下,后台接收参数的注解为RequestParam时也会报错。 二、问题原因 由于s 阅读全文
posted @ 2018-12-24 18:39 kelelipeng 阅读(937) 评论(0) 推荐(0) 编辑
摘要: @ModelAttribute使用详解 @ModelAttribute使用详解 @ModelAttribute使用详解 @ModelAttribute可以作用在方法或者方法的参数 注:被@ModelAttribute注释的方法会在此controller每个方法执行前被执行,因此对于一个control 阅读全文
posted @ 2018-12-24 17:01 kelelipeng 阅读(2091) 评论(0) 推荐(0) 编辑
摘要: @SessionAttribute使用详解 @SessionAttribute使用详解 @SessionAttribute使用详解 @ModelAttribute注解作用在方法上或者方法的参数上,表示将被注解的方法的返回值或者是被注解的参数作为Model的属性加入到Model中,然后Spring框架 阅读全文
posted @ 2018-12-24 17:00 kelelipeng 阅读(3264) 评论(0) 推荐(0) 编辑
摘要: Spring Boot 系列(八)@ControllerAdvice 拦截异常并统一处理https://www.cnblogs.com/magicalSam/p/7198420.html SpringMVC重要注解(二)@ControllerAdvicehttps://blog.csdn.net/w 阅读全文
posted @ 2018-12-21 19:49 kelelipeng 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.jianshu.com/p/940a9226fbbd 原文链接:http://www.jianshu.com/p/940a9226fbbd 原文链接:http://www.jianshu.com/p/940a9226fbbd 原文链接:http://www.jians 阅读全文
posted @ 2018-12-21 19:42 kelelipeng 阅读(17711) 评论(0) 推荐(1) 编辑