![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
文章平均质量分 88
kuangniaokuang
没有方向感,只有向高飞~
狂鸟鵟
展开
-
An invalid character [32] was present in the Cookie value
代码中突然出现了问题An invalid character [32] was present in the Cookie valueCookie中出现了空格。将空格替换掉就可以了原创 2020-06-20 08:13:49 · 215 阅读 · 0 评论 -
Jpa @Query nativeQuery=true
"message":"Noconverterfoundcapableofconvertingfromtype[org.springframework.data.jpa.repository.query.AbstractJpaQuery$TupleConverter$TupleBackedMap]totype[com.cocabit.jwtdemo.vo.StudentVo]...原创 2020-04-01 16:50:28 · 6656 阅读 · 1 评论 -
SpringBoot+Postman+Axios
Get最简单的get@GetMapping("/get1")public String get1() { return "hello world";}传参数的get@GetMapping("/get2")public String get2(String world) { return "hello" + world;}// @RequestParam@GetM...原创 2020-04-01 13:07:04 · 334 阅读 · 0 评论 -
SpringSecurity(获取登录用户的权限)
利用SecurityContextHolder@GetMapping("/hello")public Object hello() { return SecurityContextHolder.getContext().getAuthentication();}利用Authentication@GetMapping("/hello")public Object h...原创 2020-02-12 09:55:58 · 1974 阅读 · 0 评论 -
RESTful API 拦截(过滤器,拦截器,切片
Filter:只能拿到http请求的一些响应import javax.servlet.Filter;@Componentpublic class TimeFilter implements Filter{ @Override public void doFilter(ServletRequest request, ServletResponse response, Filter...原创 2020-01-07 17:01:08 · 556 阅读 · 0 评论 -
玩转Spring全家桶学习笔记(04编写你的第一个Spring程序)
第一遍看视频,关于知识点的漏网之鱼。。1.SpringBoot项目新建视频中介绍通过https://start.spring.io/网址进行新建项目。很显然,网站的更新速度很快,已经不是视频中的模样了。我一直习惯用Eclipse直接创建项目,因为,可以随时进行修改引用的包。对于自带的maven包,可以随时通过 右击 pom文件进行添加删除。2.对于maven...原创 2019-08-05 21:54:51 · 196 阅读 · 0 评论 -
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler d
问题:ERROR 3900 --- [nio-8080-exec-7] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; neste...原创 2018-02-24 07:58:12 · 29626 阅读 · 4 评论 -
disable the 'org.eclipse.recommenders.completion.rcp' plug-in
问题:To avoid this message,disable the 'org.eclipse.recommenders.completion.rcp'plug-in or disable the 'Java Proposals(Code Recommenders)'category on the content assist preference page.解决方案:1.点击链接 conte...原创 2018-02-24 07:57:55 · 4740 阅读 · 4 评论 -
Spring Boot之JPA杂记Inner Join
只为了实现一个很简单的操作:select t1.id,t1.studentname,t2.gradenamefrom student t1inner join grade t2on t1.gradeid=t2.id先创建了两个Entity@Entitypublic class Grade { @Id @GeneratedValue private Long id; private ...原创 2018-03-15 15:08:33 · 12482 阅读 · 2 评论 -
Exception processing template "xxx": Exception parsing document: template="xxx"
问题:Exception processing template "xxx": Exception parsing document: template="xxx"org.xml.sax.SAXParseException:分析:・ <→&lt;・ &→&amp;参考:点击打开链接解决方案:/*<![CDATA[*/...//your code here....原创 2018-02-28 10:41:29 · 6177 阅读 · 0 评论