一、解决SpringBoot MongoDB插入文档默认生成_class字段问题 @Configuration public class SpringMongoConfig{ @Bean public MongoTemplate mongoTemplate() throws Exception { ...
分类:
数据库 时间:
2021-04-22 16:06:57
阅读次数:
0
二进制水题~。 int n,m; int main() { cin>>n>>m; while(m--) { string s; cin>>s; int res=0; for(int i=0;i<s.size();i++) if(s[i] == 'n') res+=1<<(n-1-i); cout<< ...
分类:
其他好文 时间:
2021-04-22 15:39:34
阅读次数:
0
<br>换行标记(单独的Enter在HTML只会被当作一个特殊字符,不属于换行符) <P>段落标记 如:<P>第二段</P> 标题标记:分1-6级标题,其中<h1>为1级标题,<h2>为2级标题,以此类推到<6> 标题标记格式:<h1>标题1</h1> 居中标记:<center><h1>标题1</h ...
分类:
Web程序 时间:
2021-04-22 15:20:34
阅读次数:
0
何谓方法? System.out.println(),那么它是什么呢? System是一个类,out是一个对象,println()就是一个方法,这句话的理解就是,调用System类里的一个out对象中的方法叫做println Java方法是语句的集合,它们在一起执行一个功能。(如果需要用到大量的a+ ...
分类:
编程语言 时间:
2021-04-22 15:16:19
阅读次数:
0
Configuration: 默认有两个配置文件 /etc/ansible/ansible.cfg 为配置文件 /etc/ansible/hosts为inventory host_key_checking = True 时,不能使用密码链接target ...
分类:
其他好文 时间:
2021-04-21 12:59:45
阅读次数:
0
在/root/init.rc中添加下面内容, 开机就会执行/system/bin/boot-complete-script.sh脚本 service boot_complete_script /system/bin/boot-complete-script.sh class main oneshot ...
分类:
移动开发 时间:
2021-04-21 12:38:11
阅读次数:
0
堆排序 public class HeapSort { public static void main(String[] args) { int[] arr = {1, 3, 519, 2, 10, 8, 0, 998}; heapSort(arr); System.out.println(Arra ...
分类:
编程语言 时间:
2021-04-21 12:26:45
阅读次数:
0
今天在.Netcore项目里增加了图片验证码功能,在windows部署下未发现问题,但是在Linux(Centos)下部署却出现了如下问题 查了下是因为用了System.Drawing.Common类库需要在linux下安装一下libgdiplus来支持图像处理,图片处理,因为我的环境是在Docke ...
分类:
Web程序 时间:
2021-04-21 12:05:44
阅读次数:
0
借鉴微博:https://blog.csdn.net/zhifeiya/article/details/42919047 核心代码: using System;using System.Collections;using System.Collections.Generic;using System ...
建造者模式(Builder Pattern) 将一个复杂对象的创建与它的表示分离,使得同样的创建过程有不同的表示,用户只用知道创建类型,无需知道创建的过程。简而言之,用户只用知道对象名称,和他/她有的参数,然后传递,其余的事情我们在创建类内部进行操作。例如,用过jpa的都知道,我们只用传递我们的查询 ...
分类:
其他好文 时间:
2021-04-21 11:59:45
阅读次数:
0