远程登录mongo 192.168.184.134// 使用哪个数据库,切换到哪个数据库,如果数据库不存在,不会创建 // 数据库下必须有集合,且集合里有数据,数据库才会创建 use spitdb; // 使用哪张表 db.集合名称.命令 // 插入一条记录 db.spit.insert({cont ...
分类:
数据库 时间:
2020-07-08 23:12:33
阅读次数:
76
SpringBoot获取文件总的来说有三种方式,分别是@Value注解,@ConfigurationProperties注解和Environment接口。这三种注解可以配合着@PropertySource来使用,@PropertySource主要是用来指定具体的配置文件。@PropertySource解析@Target(ElementType.TYPE)@Retention(RetentionPo
分类:
编程语言 时间:
2020-07-08 11:41:26
阅读次数:
68
在生产环境中强制使用https,但在调试模式下允许使用明文的方法 它仅在api 23+上使用 在build.gradle中: // Put this in your buildtypes debug section: manifestPlaceholders = [usesCleartextTraf ...
分类:
移动开发 时间:
2020-07-07 20:03:07
阅读次数:
128
百度地图API实现标注多个地点和地址提示 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html x ...
Test.ts const{ccclass,property}=cc._decorator; var KEY=cc.Enum({}); Object.assign(KEY,cc.macro.KEY); @ccclass export default class Test extends cc.Com ...
分类:
其他好文 时间:
2020-07-07 18:07:02
阅读次数:
201
一、原生java整合elasticsearch的API地址 https://www.elastic.co/guide/en/elasticsearch/client/java-api/6.2/java-docs.html 二、Spring Data的官网 http://projects.spring ...
分类:
编程语言 时间:
2020-07-07 17:49:14
阅读次数:
79
1、新建store文件夹,内部新建index.js 文件内部内容如下: 写法一 import Vuex from "vuex"; import Vue from "vue"; Vue.use(Vuex); // 第一种写法: const state={ count:0, num:100 } cons ...
分类:
其他好文 时间:
2020-07-07 15:42:17
阅读次数:
77
from pyspark.sql import SparkSession,Rowfrom pyspark.sql.types import StructField, StructType, StringType, IntegerType, LongType data = [('Alex','male ...
分类:
其他好文 时间:
2020-07-07 15:40:28
阅读次数:
55
if exists (select * from sysobjects where id = object_id(N'[fn_ChineseToSpell]') and xtype in (N'FN', N'IF', N'TF')) drop function [fn_ChineseToSpell] ...
分类:
数据库 时间:
2020-07-07 15:36:09
阅读次数:
89
背景想重新创建一个之前已经从文件资源管理器删掉的项目进行练习,提示Failed to create maven project:'.../pom. xml"already exists in VFS 解决步骤用 IDEA 打开一个任意可以打开的项目;选择 File->Invalidate Cache ...
分类:
其他好文 时间:
2020-07-07 13:27:21
阅读次数:
57