
java
cc_rong
坚持
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Required String parameter 'goodsId' is not present
修改后原创 2020-04-26 22:43:08 · 495 阅读 · 0 评论 -
java.lang.IllegalArgumentException: Attribute value must not be null
java.lang.IllegalArgumentException: Attribute value must not be null at org.springframework.util.Assert.notNull(Assert.java:134) at org.springframework.web.bind.support.DefaultSessionAttribut...原创 2020-03-27 00:15:16 · 1687 阅读 · 0 评论 -
ajax请求时前端报400,后端能够接收数据
错误原因:Required String parameter 'goodsId' is not present 1. post的参数是否与后台的参数一致 2.post的参数类型,是否与后台的参数类型一致 3.在controller类中,在注解@RequestParam(value="username",required=false),required=false一定记得添加。 use...原创 2020-03-26 23:46:06 · 486 阅读 · 0 评论 -
Spring的@Autowired注入问题
加入注解: 出现的原因: 两种解决办法: 1.不用@autowired直接实例化一个对象 new的形式 2.@autowired(required=false):表示忽略当前要注入的bean,如果有直接注入,没有跳过,不会报错 ...原创 2020-02-29 15:48:07 · 390 阅读 · 0 评论 -
静态资源放行
第一种: spring-mvc.xml: <mvc:resources location="/statics/" mapping="/statics/**"/> <mvc:resources location="/css/" mapping="/css/**"/> <mvc:resources location="/js/" mapping="/js...原创 2020-02-27 10:30:55 · 578 阅读 · 0 评论 -
关于 浏览器访问本地绝对路径 Not allowed to load local resource 的问题
1.找到tomcat的配置文件(\conf\server.xml)并打开更改: 2.<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> 加入代码:<Context docBase="D:\upload" pa...原创 2020-03-19 23:11:34 · 1377 阅读 · 1 评论 -
idea使用maven运行时报错
错误信息: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project dianping: There are test failures. 解决的方案: <plugins> <plugin> ...原创 2020-02-26 14:01:15 · 235 阅读 · 0 评论 -
Invalid bound statement (not found)
出现此问题原因有: 1。mapper文件namespace和dao路径对应 <mapper namespace="com.ccr.dao.UserDao"> <select id="findAll" resultType="User"> select * from user_table </select> </...原创 2019-11-09 13:53:12 · 330 阅读 · 0 评论 -
responded with a status of 404 ()
springMVC 返回json数据时前端报responded with a status of 404 ()错误。 后台代码: 前台:原创 2019-06-13 12:34:15 · 1342 阅读 · 0 评论