spring
Ken_1115
这个作者很懒,什么都没留下…
展开
-
使用axios传输数据时出现Required request parameter ‘xxx‘ for method parameter type String is not present的问题
1、警告信息Required request parameter 'xxx' for method parameter type String is not present2、不懂英文的可以用百度翻译、有道翻译、QQ在线翻译(快捷键Ctrl+Alt+O)等工具帮助翻译3、原因前端请求的方式和后端的接受方式不一致4、解决办法当前端使用get+params进行请求时,后端使用@GetMapping+@RequestParam接收数据;当前端使用get+restful进原创 2022-03-19 23:20:58 · 89092 阅读 · 1 评论 -
使用axios进行接口请求和使用Java进行接收
1、axios普通get请求//axios普通get请求//方法名为test,传入数据valuefunction test(value) { axios({ //请求方式 method:'get', //后端接口路径 url:'/sys/test', //注意这里使用的是params,该属性负责把属性名和属性值添加到url后面,一般和get配合使用,但也能和post配合使用 params: { //attributeName为属性名原创 2022-03-19 23:10:56 · 8624 阅读 · 6 评论 -
Cannot resolve symbol ‘RestController‘
1、报错信息2、原因没有导入Spring Web的依赖3、解决办法在pom.xml里面加入以下配置信息<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId></dependency>...原创 2021-12-07 11:18:41 · 3388 阅读 · 2 评论 -
Error starting ApplicationContext. To display the conditions report re-run your application with ‘de
1、报错信息2、不懂英文的可以用百度翻译、有道翻译、QQ在线翻译(快捷键Ctrl+Alt+O)等工具帮助翻译报错信息显示找不到名为AdminService的bean,也就是说在spring容器里没有找到名为AdminService的bean3、原因忘记在AdminServiceImpl类加上@Service,导致没有把该类托管到spring容器里,所以调用AdminService接口来调用AdminServiceImpl类时报错4、解决办法加上@Service...原创 2021-12-03 16:46:46 · 737 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): xx.xx.xx.xxMapper.x
1、报错信息org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):com.ken.shoopingboot.mapper.RoleMapper.findTotal 看最上面那行,能最快,最准确的定位出错误的地方 at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init&g原创 2021-11-22 20:32:07 · 1216 阅读 · 0 评论