
java遇到的bug
SCU-JJkinging
加油,leego must be dai
展开
-
centos 配置好网卡后重启网卡失败,提示:Job for network.service failed because the control process exited with error
Job for network.service failed because the control process exited with error转载 2021-01-19 16:41:07 · 438 阅读 · 0 评论 -
本地主机ping不通本地centOS虚拟机
VMware NET Service 或者 DHCP服务未启动原创 2021-01-09 13:32:42 · 465 阅读 · 0 评论 -
springboot连接oracle数据库报错:java.lang.UnsupportedClassVersionError
完整报错:java.lang.UnsupportedClassVersionError: oracle/jdbc/OracleDriver has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0报错原因: &.原创 2020-12-14 12:44:27 · 4682 阅读 · 0 评论 -
oracle数据库报错: ORA-01033: ORACLE 正在初始化或关闭
客户发现连接数据库有问题,错误有: ORA-01033: ORACLE 正在初始化或关闭 ORA-00600: 内部错误代码 首先修改环境变量,保证cmd下访问到正确的oracle监听,如: E:\oracle\product\10.2.0\client_1\bin;E:\oracle\product\10.2.0\client_2\bin;E:\oracle\product\10.2.0\db_1\bin;%S...原创 2020-12-12 21:05:33 · 691 阅读 · 2 评论 -
报错:java.lang.IllegalStateException: Property ‘configuration‘ and ‘configLocation‘ can not specified
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2020-12-09 17:01:37.023 ERROR 9476 --- [ main] o.s.boot.SpringApplication : Application run failedorg.springframewor原创 2020-12-09 17:04:32 · 1222 阅读 · 6 评论 -
Spring Boot2.0以上版本EmbeddedServletContainerCustomizer被WebServerFactoryCustomizer替代
初学Spring Boot踩到的坑,简单记录一下。 在Spring Boot2.0以上配置嵌入式Servlet容器时EmbeddedServletContainerCustomizer类不存在,经网络查询发现被WebServerFactoryCustomizer替代,原文链接:https://segmentfault....原创 2020-12-08 13:06:02 · 288 阅读 · 0 评论 -
SpringBoot中自定义异常中,其前端页面的exception和message的值获取不到
SpringBoot中在有模板引擎的情况下,自定义错误响应页面,但是exception和message的值获取不到,时间戳timestamp和错误码status却可以获取到,1)自定义的异常 public class UserNotExistException extends RuntimeException{ public UserNotExistException(){ super("用户不存在"); }}12345 2)当用户名为come的时候,用户会不存在转载 2020-12-07 16:05:51 · 1503 阅读 · 2 评论 -
解决SpringBoot中发送put请求不起作用
问题描述: SpringBoot中更新表数据 ,发送put请求不起作用,控制台每次都是走post请求,最后我查找百度找到说是因为注解@ConditionalOnProperty限制了自动配置,默认false不开启配置,所以页面的put提交无法使用 <input type=...转载 2020-12-07 11:22:38 · 1087 阅读 · 0 评论 -
springboot报错:Request method ‘POST‘ not supported 不支持post方式表单提交
即不支持POST的方式获取静态资源解决方法:使用GET方式,即表单以GET方式提交使用重定向原创 2020-12-06 20:46:29 · 1196 阅读 · 0 评论 -
IntelliJ IDEA编码问题解决汇总
<svg xmlns="http://www.w3.org/2000/svg" style="display: none"> <path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0)"></path> ...转载 2020-12-03 21:54:51 · 541 阅读 · 0 评论 -
mybatis错误——java.io.IOException: Could not find resource com/xxx/xxxMapper.xml
1.第一种可能包之间没有展开的话:把下列配置修改<mappers> <mapper resource="com/itheima/mapper/UserMapper.xml"></mapper></mappers>改为:<mappers> <mapper resource="com.itheima.mapper/UserMapper.xml"></mapper></mappers&g原创 2020-12-02 19:10:28 · 520 阅读 · 1 评论 -
web前端页面不渲染,报错:pageContext被解析为$%7BpageContext.request.contextPath%7D
由于使用的是archetype-webapp生成的web工程,默认创建的web版本为2.3 导致在jsp中获取使用pageContext获取项目路径时被错误解析 解决方法: 将版本更改为2.3以上版本,或复制下面代码到web.xml文件中,改为4.0版本 <?xm...转载 2020-11-30 14:00:08 · 965 阅读 · 0 评论 -
执行web项目控制台输出中文乱码
执行web项目控制台输出中文乱码转载 2020-11-28 23:10:36 · 345 阅读 · 0 评论 -
解决springmvc文件上传及MultipartFile名称为null
<!--这里千万要注意,id只能为multipartResolver,其他都会上传失败--><bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <property name="defaultEncoding" value="UTF-8"/> <property name="maxUpload.原创 2020-11-27 22:31:44 · 421 阅读 · 0 评论