bug大全
开发中碰到的问题
wmxz520
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SpringBoot3整合RocketMQ问题处理
SpringBoot3整合RocketMQ问题处理原创 2024-10-20 22:52:08 · 1061 阅读 · 0 评论 -
node-sass安装报错gyp ERR! stack Error: Could not find any Visual Studio installation to use解决方法
node-sass安装报错gyp ERR! stack Error: Could not find any Visual Studio installation to use解决方法原创 2023-01-02 13:41:45 · 5058 阅读 · 1 评论 -
Jquery判断Select元素是否为空
Jquery判断Select元素是否为空 <div class="layui-form-item"> <label class="layui-form-label febs-form-item-require">户口所在地:</label> <div class="layui-input-inline" id="kzBzcjryjbxx_update_h原创 2020-11-11 14:05:06 · 1572 阅读 · 0 评论 -
Spring源码编译常见问题解决方案
使用镜像下载。在gradle-wrappert.prtopertties文件中,将distributionUrl的值修改为镜像地址,这里使用了腾讯的gtrale镜像。原创 2024-05-22 22:00:54 · 619 阅读 · 0 评论 -
SpringBoot整合Quartz报错
原因:刚开始为了生成quartz的表,配置的是always,后面再次启动没有修改。原创 2024-04-06 15:14:47 · 650 阅读 · 0 评论 -
t项目启动报错org/springframework/cloud/bootstrap/RefreshBootstrapRegistryInitializer has been compiled by
jar包的字节码编译版本和项目使用的JDK版本不一致导致的。调整项目的JDK版本即可。请确保下面的设置中的JDK版本是正确的版本。原创 2023-12-13 22:50:51 · 756 阅读 · 0 评论 -
Flutter项目安装到Android手机一直显示在assembledebug
Flutter项目安装到Android手机一直显示在assembledebug。原创 2023-10-04 12:02:43 · 827 阅读 · 0 评论 -
SpringBoot启动输出了Mybatis-plus和Pagehelper的图标的解决方法
mybatis-plus可以通过下面的配置关闭图标输出。原创 2023-09-17 17:26:52 · 2252 阅读 · 0 评论 -
前后端跨域问题java.lang.IllegalArgumentException: When allowCredentials is true, allowedOrigins cannot cont
SpringBoot升级2.4.0之后,跨域配置中的.allowedOrigins方法不能继续使用;而我的SpringBoot版本是2.7,所以报了这个错误。使用addAllowedOriginPattern方法代替addAllowedOrigin方法。原创 2023-05-03 21:50:08 · 470 阅读 · 1 评论 -
错误javax.el.ELException: java.lang.ClassCastException
错误javax.el.ELException: java.lang.ClassCastException: com.sks.domain.Student cannot be cast to java.lang.String解决方法忘记加’'符号了,加上即可。 ${requestScope.get('student')}原创 2020-07-02 20:30:07 · 335 阅读 · 0 评论 -
正确引入本地Bootstrap文件后,使用样式不生效
解决方法正确的写法如下,script标签的type属性和link标签的rel属性必须要加上,这样Bootstrap样式才能生效,路径按照自己Bootstrap文件所在位置编写就可以了。 <script type="text/javascript" src="static/js/jquery-3.5.1.js"></script> <script type="text/javascript" src="static/bootstrap-3.3.7-dist/js原创 2020-07-18 09:17:46 · 13999 阅读 · 5 评论 -
SpringCloud GateWay网关整合报错Error creating bean with name ‘routeDefinitionRouteLocator‘ defined in clas
SpringCloud GateWay网关整合报错Error creating bean with name 'routeDefinitionRouteLocator' defined in clas。原创 2023-01-11 22:38:52 · 2381 阅读 · 2 评论 -
SpringBoot启动报错BeanCreationException: Error creating bean with name ‘myMapper‘
3、dao层,请检查dao接口是有@Repository注解;如果使用的是mybatis,需要在application.yml文件中指定实体类的位置和mapper.xml文件的位置;最后启动类中需要使用@MapperScan注解,指定dao接口所在的包路径;1、项目结构要对,SpringBoot会自动扫描当前包以及当前包的子包,所以这里service模块和启动类所在的模块的包结构需要保持一致,即Service类也必须是和启动类同一个包或者在启动类的子包下;原创 2022-10-29 18:47:33 · 2507 阅读 · 0 评论 -
Eureka 搭建之host.docker.internal问题
Eureka 搭建之host.docker.internal问题原创 2022-08-27 14:37:22 · 2329 阅读 · 0 评论 -
ElasticSearch整合Kinaba报错kibana server is not ready yet
ElasticSearch整合Kinaba报错原创 2022-08-06 21:12:34 · 418 阅读 · 0 评论 -
Android中的ProgressBar使用时进度出现负数
原因问题在于下载的文件过大,而我们使用的是比较小的类型声明变量(如int),计算后因为溢出而导致求出来的进度为负数。解决方法将数据类型替换为更大的即可。原创 2021-06-24 14:51:52 · 797 阅读 · 2 评论 -
创建单选对话框时,不显示单选列表,不报错
错误可以看到并没有显示单选列表。解决方法 class OnClickListnerImpl implements View.OnClickListener { @Override public void onClick(View v) { AlertDialog.Builder builder = new AlertDialog.Builder(AlertDialogActivity.this); //设置显示图原创 2021-06-17 19:47:26 · 212 阅读 · 0 评论 -
给CheckBox设置属性AutoLink不生效
通过代码给CheckBox设置AutoLink属性的值,发现设置不成功。代码如下: checkBox3.setText("https://www.bilibili.com/"); checkBox3.setAutoLinkMask(Linkify.ALL);解决方法:将上面两行代码换一个位置:checkBox3.setAutoLinkMask(Linkify.ALL);checkBox3.setText("https://www.bilibili.com/");如果给其它组件设原创 2021-06-13 21:33:25 · 168 阅读 · 0 评论 -
使用Linux命令修改Android中文件(文件夹)的权限
Adb连接Android studio自带的模拟器1.首先要确认自己的模拟器没有问题;2.使用命令:Adb connect 127.0.0.1:5555连接模拟器,自带的模拟器的端口号是5555。3.使用adb shell进入命令模式,此时可能会出现如下问题:使用adb devices查看有多少个模拟器设备;连接指定设备,adb -s emulator-5554 shell,进入命令模式。使用su进入管理员模式;使用chmod命令修改指定文件的权限:参考Android 修改指定原创 2021-06-09 17:16:44 · 312 阅读 · 0 评论 -
DirectX3D学习中碰到的问题
DirectX3D学习中碰到的问题原创 2020-03-11 20:13:57 · 210 阅读 · 0 评论 -
在app.json中添加注释出现undefined Expecting STRING, got INVALID错误
错误解决方法app.json文件中不能写注释,去掉注释即可。原创 2020-05-16 17:23:56 · 1052 阅读 · 0 评论 -
AIDL使用出现无法使用AIDL文件里面的类
问题创建aidl文件后,想在其它地方使用它,结果发现报错,提示没有IMyAidlInterface;return new IMyAidlInterface.Stub(){}解决方法先在Build---->Clean Project,然后再Make Project即可。原创 2021-04-26 10:55:33 · 1140 阅读 · 0 评论 -
使用${pageContext.request.contextPath}时无法解析而乱码的解决
问题可以看到${pageContext.request.contextPath}没有正确获取路径而是出现了乱码解决出现这个问题一种情况是没有导入servlet和jsp的jar,所以我们需要导入servelt和jsp的jar。另外一种情况是web.xml文件中的web-app版本过低导致,只有2.4及以上版本才可以正确显示,以下给出了对应情况的解决方法,判断自己是哪一种情况,然后解决即可。servlet和jsp的依赖 <dependency> <groupId&原创 2020-12-11 15:30:02 · 668 阅读 · 0 评论 -
ajax发送请求,controller层接收出现问题Content type ‘application/json;charset=UTF-8‘ not supported
问题11-Dec-2020 13:47:02.713 警告 [http-nio-8080-exec-9] org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver.logException Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type ‘application/json;charset=UTF-8’原创 2020-12-11 14:20:50 · 866 阅读 · 0 评论 -
Spring中使用Jackson出现问题org.springframework.beans.factory.BeanCreationException: Error creating bean wit
问题org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter’: Instantiation of bean failed; nested exception is org.springframework.beans.Bean原创 2020-12-11 14:11:21 · 364 阅读 · 0 评论 -
Linux下启动nginx出现nginx: [emerg] open() “/var/run/nginx/nginx.pid“ failed (2: No such file or directory
错误Linux下启动nginx出现错误:nginx: [emerg] open() “/var/run/nginx/nginx.pid” failed (2: No such file or directory)解决方法进入/var/run目录cd /var/run创建nginx文件夹mkdir nginx进入nginx文件夹cd nginx创建nginx.pid文件touch nginx.pid返回nginx文件夹下的sbin目录,启动nginx./nginx可以看到n原创 2020-10-10 09:37:29 · 768 阅读 · 0 评论 -
jackson出现问题java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionExcep
问题org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter’: Instantiation of bean failed; nested exception is org.springframework.beans.Bean原创 2020-08-25 14:00:18 · 559 阅读 · 0 评论 -
ActiveMQ Broker使用出现错误java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.ObjectMapper
问题Exception in thread "main" java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectMapper at org.apache.activemq.broker.jmx.PersistenceAdapterView.<clinit>(PersistenceAdapterView.java:31) at org.apache.activemq.store.kahadb.KahaDBPe原创 2020-08-22 09:52:05 · 610 阅读 · 0 评论 -
SpringBoot使用MySQL出现问题java.sql.SQLException: The server time zone value ‘�й���ʱ��‘ is unrecognized o
错误java.sql.SQLException: The server time zone value ‘�й���ʱ��’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the ‘serverTimezone’ configuration property) to use a more specifc time zone va原创 2020-08-13 14:40:58 · 299 阅读 · 0 评论 -
Spring错误Error creating bean with name ‘roleController‘
错误org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘roleController’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: p原创 2020-08-12 17:04:17 · 914 阅读 · 0 评论 -
maybatis常见问题之org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
问题org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.sks.mapper.UserDao.pageQueryData解决方法凡是出现这种类型的问题,原因都是dao接口和映射配置文件没有绑定成功,即在指定mybatis映射配置文件的路径时出现了错误,或者在mybatis映射文件中指定dao接口时出现错误。...原创 2020-08-08 16:55:53 · 141 阅读 · 0 评论 -
SpringSecurity使用@PreAuthorize进行角色校验无效
错误SpringSecurity使用@PreAuthorize进行角色校验无效解决方法在类上加上注解@EnableGlobalMethodSecurity(prePostEnabled = true)。原创 2020-07-31 16:35:43 · 1769 阅读 · 0 评论 -
springboot使用thymeleaf出现Circular view path错误
错误去出现这个错误是因为没有导入依赖。解决方法导入spring-boot-starter-thymeleaf依赖即可。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> <version>2.2.2.RELEASE</versio原创 2020-07-29 22:22:36 · 373 阅读 · 0 评论 -
eclipse打包springboot项目出现错误No complier is provided in this environment
错误解决方法第一种方法加入maven-compiler-plugin插件而且要指定编译的源文件的版本和目标文件的版本<plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin&原创 2020-07-29 22:16:14 · 478 阅读 · 0 评论 -
SSM整合出现错误Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Priority
错误解决导入log4j依赖包。<dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.16</version> </dependency>原创 2020-07-29 14:09:02 · 307 阅读 · 0 评论 -
Cause: java.sql.SQLException: Unsupported character encoding ‘utf-8 ‘.
错误org.apache.ibatis.exceptions.PersistenceException: Error querying database. Cause: java.sql.SQLException: Unsupported character encoding 'utf-8 '.The error may exist in com/sks/dao/UserDao.xmlThe error may involve com.sks.dao.UserDao.findByUserIdTh原创 2020-07-20 17:16:59 · 2286 阅读 · 0 评论 -
mybatis错误:Type interface com.sks.dao.UserDao is not known to the MapperRegistry.
mybatis错误org.apache.ibatis.binding.BindingException: Type interface com.sks.dao.UserDao is not known to the MapperRegistry.at org.apache.ibatis.binding.MapperRegistry.getMapper(MapperRegistry.java:47)at org.apache.ibatis.session.Configuration.getMapper(C原创 2020-07-20 16:55:39 · 471 阅读 · 0 评论 -
MySQL插入数据错误Incorrect string value: ‘\xE8\x85\xBE\xE8\xAE\xAF‘ for column ‘custname‘ at row 1
错误解决方法查看自己的数据库编码和出现问题的列的编码是不是UTF-8,全部改为UTF-8即可。原创 2020-07-08 19:29:27 · 472 阅读 · 0 评论 -
关闭连接以后发现连接不为空,这是为什么
在写JDBC查询的时候发现一个陌生的知识。执行这个程序以后发现输出结果竟然不为空,在网上查找以后发现自己并没有错,关闭数据库连接对象并不等于数据库连接对象为空。 public void testQuery() { //数据库连接信息 String url = "jdbc:mysql://localhost:3306/db_crm?useUnicode=true&characterEncoding=utf-8"; String user = "root"; String passwo原创 2020-07-06 17:41:56 · 1699 阅读 · 0 评论 -
Mybatis逆向工程运行出现错误java.sql.SQLException: Cannot connect to database
错误解决方法可能是connectionURL书写错误。 <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql:/localhost:3306/eesy" userId="root" password="root" />..原创 2020-07-03 16:20:16 · 2688 阅读 · 0 评论
分享