自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(55)
  • 资源 (2)
  • 问答 (1)
  • 收藏
  • 关注

原创 html head 添加子标签

【代码】html head 添加子标签。

2023-12-26 11:53:01 355

原创 html获取远程文件的内容

【代码】html获取远程文件的内容。

2023-12-25 18:32:25 413

原创 html动态加载style标签

【代码】html动态加载style标签。

2023-12-25 18:27:21 541

原创 html动态加载script

事件触发时,样式表、图像和子框架可能还没有完全加载。这通常用于检测外部资源是否已完全加载。当一个资源(如脚本、图像或样式表)完成加载时,方法来确保在DOM加载完成后执行代码。当HTML文档被完全加载和解析完成时,使用jQuery,你可以使用。

2023-12-25 18:25:41 979

原创 html往head标签里加内容

2023-12-25 18:21:35 359

原创 即时性需求

即时性类的需求,可以每隔一段时间调接口刷新,避免缓存。

2022-06-22 09:50:45 138 1

原创 百度收录图片修改,百度搜索出来的网站缩略图

一种是百度自己爬取的网站 favicon.ico ,另外一种就是在百度平台上传logo2是在百度站长平台上传如何修改百度收录的快照图片 - 站长教程 - 态度云

2022-04-02 17:03:43 917

原创 Object(...) is not a function

本意是在某个方法上加个防抖,但是加了之后就会报这个错误,检查防抖的引入,没有问题。最后把这个vue文件在路由里进行懒加载,就好了。(感谢大佬)例如 import index from ('@/views/index')换成 const index = () => import('@/views/index')...

2021-10-26 18:24:14 1890

原创 新版本idea setting-gradle下没有offline mode

terminal里直接输入命令: gradlew build就是在线模式, gradlew build --offline就是离线

2020-04-02 14:25:41 2075

原创 The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received

com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure连的远程数据库我的原因是数据库白名单设置有问题,换网了,需要再加一个白名单ip

2020-03-19 14:40:19 179

原创 Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsExcept...

2020-03-02 22:31:40 6735

原创 No instrumentation registered! Must run under a registering instrumentation.

注意androidx.test和android.support.test出错的原因可能是有些使用android.support.test,、有些使用androidx.test

2019-12-03 19:14:17 4542

原创 Delegate runner 'androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner' for AndroidJUnit4 co

删掉@RunWith(AndroidJUnit4::class)就好了

2019-12-02 19:21:17 2213 4

原创 dagger2学习

转载,这篇讲的也太清楚了吧,建议看原文Inject,Component,Module,Provides是dagger2中的最基础最核心的知识点。奠定了dagger2的整个依赖注入框架。Inject主要是用来标注目标类的依赖和依赖的构造函数Component它是一个桥梁,一端是目标类,另一端是目标类所依赖类的实例,它也是注入器(Injector)负责把目标类所依赖类...

2019-10-23 11:52:12 114

原创 Gradle DSL method not found: 'kapt()'

在学习kotlin写安卓的时候,配置框架,报了这个错解决:加上apply plugin: 'kotlin-kapt'

2019-10-14 14:48:15 794

原创 java.io.IOException: Cleartext HTTP traffic to imgcache.qq.com not permitted

网络图片加载框架:试过了两个框架都显示不出来图片,picasso,glideAndroid9.0 默认是禁止所有的http请求的,需要在代码中设置如下代码才可以正常进行网络请求:android:usesCleartextTraffic="true"。如图<application android:name="xxxx.xxxx.xxx.xxx" ...

2019-08-14 10:23:15 425

原创 transaction.replace(R.id.container,FragmentUtil.fragmentUtil.getFragment(it),it.toString

黑马教程kotlin安卓开发里的这句话,错误表示要求的是Fragment,然而FragmentUtil.fragmentUtil.getFragment(it)返回的是一个BaseFragment?类型,所有要进行强制类型转换改为:transaction.replace(R.id.container,FragmentUtil.fragmentUtil.getFragme...

2019-08-12 16:36:29 795

原创 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type MutableMa

map.put("grade",66.0)问题出现在这句因为我定义的map可空var map:MutableMap<String,Any?>?改为map?.put("grade",66.0)

2019-08-07 11:57:08 944

原创 kotlin笔记

1、field 关键字这个问题对 Java 开发者来说十分难以理解,网上有很多人讨论这个问题,但大多数都是互相抄,说不出个所以然来,要说还是老外对这个问题的理解比较透彻,可以参考这个帖子:https://stackoverflow.com/questions/43220140/whats-kotlin-backing-field-for/43220314其中最关键的一句:Remember ...

2019-08-05 16:24:27 116

原创 时间并格式化yyyy-MM-dd HH:mm:ss

获取现在的时间并格式化yyyy-MM-dd HH:mm:ssString s=new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());Date date=null;try { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd H...

2019-07-10 16:24:01 1382

原创 springboot没有启动标识,启动类也没有启动标识

第一种方法检查看到没有target文件夹 不知道跟这个有没有关系,既然没有target文件夹,我就去看了下maven,结果在右侧Maven Projects没发现该项目,猜测可能是没检测到该项目在Maven Projects点击+号,选中该项目的pom,xml, 右下角出现检测,成功。第二种方法在Maven Projects点击+号,选中该项目的pom,xml, 右下角出现...

2019-07-09 14:56:32 12067 2

原创 MySQL关键字

ADD ALL ALTER ANALYZE AND AS ASC ASENSITIVE BEFORE BETWEEN BIGINT BINARY BLOB BOTH BY CALL CASCADE CASE CHANGE CHAR CHARACTER CHECK COLLATE ...

2019-07-09 00:15:51 93

原创 JAVA命名规范

一、命名规范1、项目名全部小写2、包名全部小写3、类名首字母大写,如果类名由多个单词组成,每个单词的首字母都要大写。如:public class MyFirstClass{}4、变量名、方法名首字母小写,如果名称由多个单词组成,每个单词的首字母都要大写。如:int index=0;public void toString(){}5、常量名全部...

2019-07-08 15:54:27 79

原创 Verify the connector's configuration, identify and stop any process that's listening on port 8080, o

端口被占用了。换一个端口yml配置换端口server: port: 8081

2019-07-08 10:00:08 38081 1

原创 Failed to bind properties under 'spring.servlet.multipart.max-file-size' to org.springframework.util

原本写的是100Mb,启动的时候报了上面这个错误,改为100MB

2019-07-08 09:55:37 598

原创 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManage

Caused by: org.hibernate.AnnotationException: No identifier specified for entity: com.hxq.ordersystem.entity.Fish at org.hibernate.cfg.InheritanceState.determineDefaultAccessType(InheritanceState....

2019-07-07 23:28:16 170

原创 SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required

数据库连接失败,依赖的数据库版本和本地数据库版本不一样,把版本改成自己的连的数据库版本即可<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version&gt...

2019-07-07 23:16:02 205

原创 springboot项目yml报红com.mysql.jdbc.Driver

解决办法,将 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <scope>runtime</scope&...

2019-07-04 11:30:42 3068 1

原创 使input文本框不可编辑的3种方法

disabled 属性规定应该禁用 input 元素,被禁用的 input 元素,不可编辑,不可复制,不可选择,不能接收焦点,后台也不会接收到传值。设置后文字的颜色会变成灰色。disabled 属性无法与 <input type="hidden"> 一起使用。 示例:<input type="text" disabled="disabled" /> r...

2019-07-01 20:19:08 126

原创 java日期 Date格式化

学习链接:https://www.runoob.com/java/java-date-time.html这个教程里比较全

2019-06-02 18:54:03 119

原创 Caused by: org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expre

Caused by: org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "emp.carNumber" (template: "carer/list" - line 76, col 29)再往下看看有没有这个错误:Caused by: org...

2019-06-02 00:50:34 5364

原创 Parameter 'cId' not found. Available parameters are [id, param1]

持久层中传参的时候加@param绑定一个参数,在注解或者mapper.xml中使用的时候要和绑定的名字一致public List<Violation> findAllByCid(@Param("cId") Integer cId);...

2019-06-02 00:41:58 4603

原创 安卓学习中的错误

Android resource linking failedOutput: D:\workspace\Android\mylab\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml:26: error: resource style/Theme.AppCo...

2019-06-02 00:14:37 721

原创 java.lang.StackOverflowError: null

出现栈内存溢出的常见原因有2个: 1. 函数递归调用层次过深,每调用一次,函数的参数、局部变量等信息就压一次栈,并且没有及时出栈。 2. 局部静态变量体积太大第二种情况也比较常见,比如在函数里定义很大的局部变量(例如大数组),这种情况可以将局部变量改为静态变量(实质上也是全局变量)。StackOverflowError在程序栈空间耗尽时抛出,通常是深度递归导致。StackOverflowEr...

2019-06-02 00:11:58 41558 3

原创 nested exception is org.apache.ibatis.binding.BindingException:

用mybatis的xml文件进行ORM模式,出现下面错误nested exception is org.apache.ibatis.binding.BindingException: Parameter 'id' not foundAvailable parameters are {carer param}原因: /** * 注册一个车主信息 * @p...

2019-05-28 16:10:46 20736 2

原创 IDEA Error:java: Compilation failed: internal java compiler error

解决办法很简单:File-->Setting...-->Build,Execution,Deployment-->Compiler-->Java Compiler 设置相应Module的target bytecode version的合适版本(跟你jkd版本一致),这里我改成1.8版本的。...

2019-05-23 00:21:05 105

原创 Mybatis查询多条记录并返回List集合

实体对象如下:private String vend_id;private String vend_name;private String vend_address;private String vend_city;private String vend_state;private String vend_zip;private String vend_country;priv...

2019-05-21 17:12:45 2469

原创 Failed to bind properties under 'spring.datasource' to javax.sql.DataSource

网上查了下,没有找打相关的报错解决办法,所以在解决问题后,整理到网上,帮助有需要的朋友。springboot整合druid时,引入了druid的数据源,在配置文件application.yml中配置了相关配置 initialSize: 5 minIdle: 5 maxActive: 20 maxWait: 60000 timeBetw...

2019-05-20 19:56:57 362

原创 SpringBoot1.5x与2.0x在使用schema-*.sql自动建表方面的不同

SpringBoot,一些1.5x版本与2.0x版本之间小差别,本文主要讲自动建表方面的差别。1、SpringBoot 1.5x时用法 方法(1): 直接在resources文件夹(即类路径)下,新建文件名为schema-*.sql的建表语句脚本文件,启动主应用的时候就会在配置好目标数据库中创建表。 ...

2019-05-20 19:13:18 658

原创 SpringBoot重点详解--配置数据源

默认数据源Springboot默认支持4种数据源类型,定义在 org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration 中,分别是: org.apache.tomcat.jdbc.pool.DataSource com.zaxxer.hikari.HikariDataSource or...

2019-05-20 18:50:56 271

URLProviderUtil.java

B站黑马视频kotlin安卓开发教程中的 URLProviderUtil.java,

2019-08-12

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除