草庐IT

date_found

全部标签

Vue+Element ui el-date-picker默认当前年月日时分秒并且可再次选择

el-date-picker通常都是时间选择器获取焦点的时候获取当前时间,现在的需求是表单进入时间框默认当前年月日分秒,并且可以再次获取选中时间。下面是我的解决办法,希望可以帮到你们!1.首先要v-model绑定时间选择器值2.在Date方法中首先要使用newDate获取当前时间其次是时分秒最后进行拼接需要的格式(比如yyyy-MM-dd或者是yyyy-MM-ddHH:mm:ss我这边是拼接的获取的是当前年月日时分秒) 3.最后一步使用 this.$set(target,key,value)target:要更改的数据源(可以是数据对象或者数组)key:要更改的具体数据value:重新赋的值th

Jenkins构建服务,Dockerfile报错:manifest for java:8-jre not found: manifest unknown: manifest unknown

1、问题描述Jenkins构建服务,控制台报错:manifestforjava:8-jrenotfound:manifestunknown:manifestunknown截图:2、解决问题这是由于Docker官方已经弃用java8镜像,想使用jdk1.8的话,可以使用openjdk。解决办法是,将Dockerfile改为FROMopenjdk:8-jreFROMopenjdk:8-jreRUNcp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime\&&echo"Asia/Shanghai">/etc/timezoneARGJAR_FILECOPY${

POST http://localhost:8080/login 404 (Not Found)

POSThttp://localhost:8080/login404(NotFound)可以看到我们这个路由这边传输的网址有问题我在网上找了好多,有的说URL写成了URI…仔细检查一下,是之前在打代码的时候多写了一行也就是说我的index.js文件有这两个axios.defaults.baseURL语句:导致它报错了,删掉后面这个空的就好。

Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway错误

错误案例 产生的原因原因是因为springcloudgateway是建立在springboot2.x和springwebflux基础上的既:gateway本身已经包含了springmvc的功能,正与提示的一样和springboot的webstarter冲突了解决方式找到gateway下面的spring-boot-starter-web依赖,然后将其注释掉org.springframework.bootspring-boot-starter-web 

A component required a bean of type ‘XXX‘ that could not be found 解决办法

Acomponentrequiredabeanoftype‘XXX‘thatcouldnotbefound解决这个问题的方法很简单,只需要检查问题类上是否标注了SpringBoot可以自动扫描的注解,比如缺失了@Service、@Component、@Mapper等,如果是这个原因,直接添加上响应的注解就可以解决了。

【Element UI】日期选择器el-date-picker 默认选中当前日期==> 不可选当日之前的日期

一个人能否合理表达自己的攻击性是健康与否的重要标准。参考ElementUI Element-Theworld'smostpopularVueUIframework 目录1.默认当前天+之前日期不可选2.默认当前天+之后日期不可选1.默认当前天+之前日期不可选 //设置不能选则当天之前的时间写data()中pickerOptions:{disabledDate(time){returntime.getTime()//设置默认选中当前日期getNowTime(){varnow=newDate();varyear=now.getFullYear();//得到年份varmonth=now.getMon

element-ui 日期时间选择器el-date-picker 设置禁止选择日期

element-ui日期时间选择器el-date-picker设置禁止选择日期使用日期选择器时,有的时候需要禁止选择一些日期,我们可以通过快捷选项picker-options对象中的禁用日期属性disabledDate来设置。picker-options对象中的可配置项不能选择今天之后的日期,以及90天前的时间pickerOptions:{disabledDate:(time)=>{constday90=90*24*3600*1000;letcurtime=newDate(newDate().format('yyyy/MM/dd23:59:59')).getTime();returntime.

analyzer [ik_smart] not found for field [name]

springboot集成elasticsearch启动服务端后,访问出现如下报错:org.elasticsearch.index.mapper.MapperParsingException:analyzer[ik_smart]notfoundforfield[name] atorg.elasticsearch.index.mapper.TypeParsers.parseAnalyzersAndTermVectors(TypeParsers.java:111)~[elasticsearch-6.4.3.jar:6.4.3] atorg.elasticsearch.index.mapper.Typ

error: attribute android:requestLegacyExternalStorage not found.error: failed processing manifest.

最近调试项目的时候遇到如下错误:error:attributeandroid:requestLegacyExternalStoragenotfound.error:failedprocessingmanifest.这个错误的原因是在AndroidManifest.xml的application中增加了一行配置"android:requestLegacyExternalStorage="true"经过分析和尝试,发现是module的compileSdk小于29时,会提示该错误,大于等于29时就正常。经过分析发现,"android:requestLegacyExternalStorage="tru

pom文件中,mysql依赖报错:mysql:mysql-connector-java:jar:unknown was not found in http://maven.aliyun.com/nex

spring项目导入sql依赖时报错:mysql:mysql-connector-java:jar:unknownwasnotfoundinhttp://maven.aliyun.com/nexus/content/reposi…解决办法最好添加mysql版本号!--mysql依赖-->dependency>groupId>mysql/groupId>artifactId>mysql-connector-java/artifactId>version>8.0.32/version>scope>runtime/scope>/dependency>报错消失一定记得刷新