自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 问答 (9)
  • 收藏
  • 关注

原创 springboot出现错误:No qualifying bean of type ’xxx‘ available

当启动时出现找不到没有限定类型的bean,可以在启动类上面加上@SpringBootApplication,@EnableFeignClients

2021-09-10 10:42:03 1002

原创 Mongodb 的上传和下载

实验了好几个版本这是最终成功的版本data:mongodb:host: 连接地址port: 27017database: ceshi@Autowiredprivate GridFsTemplate gridFsTemplate;@Autowiredprivate MongoDbFactory mongoDbFactory;@Autowiredprivate MongoTemplate mongoTemplate;@Autowiredprivate GridFSBucket grid

2021-08-12 12:00:28 339

原创 分页工具类

工具类直接复制创建package com.celix.common.utils;import com.github.pagehelper.Page;import com.github.pagehelper.PageInfo;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;public class PageUtils {/** * * @param

2021-03-02 15:44:33 143

原创 ERROR: operator does not exist: character varying = integer

ERROR: operator does not exist: character varying = integer操作数据库时报错了,报错内容为“No operator matches the given name and argument type(s),You might need to add explicit type casts”,原因在于字段格式不正确。修改query为query=(“select … where code = cast (%s as VARCHAR)” %code)运

2021-03-01 16:30:37 5210

原创 去除文本域中的小括号和加减符号并取值

//去除文本域中的小括号并取值public static String[] strTransArr(String str,String s) {String[] sArr = s.split(",");for (int i=0;i<sArr.length;i++){str=str.replace(sArr[i],",");}String[] strArr = str.split(","); return strArr;}String[] ss=strTransArr(res,"

2020-10-15 09:30:08 233

原创 获取括号后面的英文字母

function getCaption(obj){var index=obj.lastIndexOf("\ )");obj=obj.substring(index+1,obj.length);// console.log(obj);return obj;}zdmjTextName1=(人口+树节点)AUVgetCaption(zdmjTextName1)//输出AUV

2020-09-21 17:05:37 125

空空如也

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

TA关注的人

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