
Spring
qq_34759280
这个作者很懒,什么都没留下…
展开
-
spring boot跨域请求
package com.cskaoyan.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.cors.CorsConfiguration; i...原创 2019-11-23 11:56:54 · 192 阅读 · 0 评论 -
No converter found for return value of type: class com.liaohao.bean
导入如下依赖即可 <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.9.9...原创 2019-11-06 23:19:58 · 168 阅读 · 0 评论 -
org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /user/query/2
报错的原因是没有找到对应的Handler来处理请求,在spring配置文件中添加如下配置即可,表示开启注解驱动 <mvc:annotation-driven />原创 2019-11-05 09:15:00 · 747 阅读 · 0 评论 -
The matching wildcard is strict, but no declaration can be found for element 'mvc:default-servlet...
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://ww...原创 2019-11-04 17:51:22 · 779 阅读 · 0 评论