- 博客(11)
- 收藏
- 关注
原创 Request重复获取Post请求体
在ServletRequest当中流只能被读取一次,在springboot当中我们使用@requestBody 后springmvc 配合Jackson会去读取一次,然后后续就不可以读取了。
2022-08-06 11:23:37
559
原创 基于aop切面思想自定义注解实现redis优化
引入maven依赖<!-- redis --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> <!-- sprin
2020-12-25 19:46:15
199
原创 jar包在本地能运行 打包上服务器后-jar命令运行后报错数据库driver没有找到
巴拉巴拉的就不看了 最后报错org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class就是说没有找到数据库驱动,因为项目在本地能跑起来我一直以为是MySQL和springBoot版本不兼容导致的 找了很久 最后原因是编译的时候没有把启动文件application.propertie.
2020-12-17 14:46:59
1484
原创 git 报错原因总结 Push master to origin/master was rejected by remote
idea报错git Bash here报错由于idea报错都是主分支拒绝 (属于私人仓库,如果是公司的仓库看看是不是没用权限)这次的原因为 码云的推送邮箱未打开去掉勾选就行 再次推送就可以推送上去了...
2020-12-10 10:07:48
609
1
原创 element-UI对话框标题title属性和vue自定义绑定
1.弹出框动态绑定标题:title <el-dialog :title="titleMap[dialogStatus]" :visible.sync="dialogFormVisible" :rules="rules" ref="ruleForm"> <el-form> <el-form-item label="角色" :label-width="formLabelWidth" :rules="[{ required: true, message: '输入角色
2020-11-26 11:39:24
4981
原创 xml无法编译进target里面
AbstractHandlerExceptionResolver.java:194 |org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver |Resolved exception caused by handler execution: org.apache.ibatis.binding.BindingException: Invalid bound statement (not fou
2020-11-25 20:11:53
456
原创 prepareStatement 占位符(?)的使用
public void PrepareStatementInsertTest(){ Scanner input = new Scanner(System.in); System.out.println("请输入姓名"); String name = input.next(); System.out.println("请输入年龄"); int age = input.nextInt(); try { ..
2020-08-26 19:58:52
2302
原创 关于在Junit单元测试中不能使用scanner输入和I/O流无法读取的问题 及解决方法**
关于在Junit单元测试中不能使用scanner输入和I/O流无法读取的问题 及解决方法此文件(没有修改)在 导航栏Help下的 Edit Customvmoptions中如图添加 :-Deditable.java.test.console=true重启Ider即可外加素质三连 谢谢...
2020-07-28 15:52:42
468
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人