#of

【MongoDB】mongodump and mongorestore of mogodb

The another tool will be mentioned in this blog, namely mongodump and mongorestore. General&nbs...

shell用法 (cat << EOF)

下面的语句会创建不存在的secure.config,如果存在直接追加,然后把多行内容:[database]       password=gerrit写入文件secure.config cat>>secure.config<...
代码星球 ·2020-04-06

JavaScript indexOf() 方法,获取元素的位置;Object.keys()获取对象的所有key的数组

indexOf()方法可返回某个指定的字符串值在字符串中首次出现的位置。语法stringObject.indexOf(searchvalue,fromindex)参数描述searchvalue必需。规定需检索的字符串值。fromindex可选的整数参数。规定在字符串中开始检索的位置。它的合法取值是0到stringObj...

IntelliJ IDEA 配合 Maven 的一些技巧:Profiles

IntelliJIDEA2017.1Maven3.3.9Nexus3.2.1了解Maven配置的基本用法了解私有仓库,比如nexus的一些概念强烈建议把Maven的settings.xml文件同时放在:%USER_HOME%/.m2/settings.xml 和${maven.home}/conf/setti...

sqlserver中set IDENTITY_INSERT on 和 off 的设置方法

sqlserver中setIDENTITY_INSERTon和off的设置方法:执行插入数据库插入数据时报了以下错误,我明明没有给主键set值但还是报错解决方法如下:qlserver批量插入记录时,对有标识列的字段要设置setIDENTITY_INSERT表名on,然后再执行插入记录操作;插入完毕后恢复为off设置格式...

macOS 在终端中使用 adb命令,每次都要source ~/.bash_profile 才生效

macOS下已经配置好Android开发环境,环境变量也添加了,但是在终端中使用adb命令每次都需要source.bash_profile之后才能识别,否则就提示 zsh:commandnotfound:adb 解决方案:1、查看根目录下是否有.zshrc文件,如果没有就新建一个touch.zshr...

Error:fatal: Not a git repository (or any of the parent directories): .git

在项目目录下执行gitinit命令。大功告成。...

Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW _TASK flag.

在Activity中使用startActivity()方法不会有任何限制,因为Activity重载了Context的startActivity()方法。但是如果是在其他地方(如Widget或Service、BroadcastReceiver中)使用startActivity()方法,就会报错:android.util....

linux bash & profile &bash_profile 小结

  login方式::su-oracle依次/etc/bash.bashrc————/home/$user/.bashrc————/ect/profile———&mda...
代码星球 ·2020-04-06

Error:(23, 0) Could not find method implementation() for arguments [directory 'libs'] on object of t

Error:(28,0)Couldnotfindmethodimplementation()forarguments[com.android.support:appcompat-v7:25.3.1]onobjectoftypeorg.gradle.api.internal.artifacts.dsl.dependenc...
代码星球 ·2020-04-06

spring boot 之 错误:SpelEvaluationException: EL1008E: Property or field 'timestamp' cannot be found on object of type 'java.util.HashMap'

这个错误我也见过很多次了,今天终于理解了其出现的原因。错误是这样的:2017-11-2318:05:39.504ERROR4092---[nio-8080-exec-3]o.a.c.c.C.[Tomcat].[localhost]:ExceptionProcessingErrorPage[errorCode=0,loc...

maven 下载jar失败: resolution will not be reattempted until the update interval of central has elapsed or updates are forced

Multipleannotationsfoundatthisline:-ArtifactTransferException:Failuretotransfercom.fasterxml.jackson.core:jackson-databind:jar:2.9.0.pr3fromhttp://repo1.maven.o...

org.artofsolving.jodconverter.office.OfficeException: failed to start and connect

 org.artofsolving.jodconverter.office.OfficeException:failedtostartandconnect docviewer调用openoffice,启动失败,检查好像是 openoffice没注册。 cd D:Prog...

java.lang.IndexOutOfBoundsException at java.io.FileOutputStream.writeBytes(Native Method)

  测试DDNwos的时候出现错误: available:3212/usr/lk/data/linkapp/ddn_1440639847758_temp10241024java.lang.IndexOutOfBoundsExceptionatjava.io.FileOutputStream...

【php】php5.0以上,instanceof 用法

1、instanceofphp官网:http://php.net/manual/zh/language.operators.type.php2、instanceof 用于确定一个PHP变量是否属于某一类 class 的实例3、使用方法:子类soninstanceof父类fatherinst...
首页上一页...155156157158159...下一页尾页