自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 基于spring 切面,切controller层的操作日志

基于spring aop 切controller层的操作日志

2023-03-15 14:37:52 742

原创 基于spring封装的redisTemplate工具类

基于spring和redis的redisTemplate工具类

2022-09-20 21:00:53 223

原创 报错java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/Stri

报错java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V

2021-12-21 18:50:54 3732 2

原创 spring boot启动报错No persistence exception translators found in bean factory. Cannot perform exception

启动springBoot项目时报错:Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.2021-12-16 18:32:25.972 [main] ERROR org.springframework.boot.SpringApplication - Application startup failed org.sp

2021-12-16 18:37:54 1320

原创 Spring boot将定时任务的时间写到配置文件中

创建spring boot项目之后,1.在启动类上面加上 @EnableScheduling 注解打开定时任务功能2.在yml配置文件里面添加自定义的参数和定时策略(定时策略可参考https://www.bejson.com/othertools/cron/),例如3.在需要引入定时策略的方法上引入@Scheduled(cron = “${scheduling.shipGps}”)就可以自定义配置定时时间啦,好处是想修改定时任务的时间时,不需要修改代码,直接修改配置文件重启即可。...

2021-02-05 16:52:11 2938 1

原创 用idea切换git分支

用idea切换git分支先打开terminal窗口(如果没配置的话先百度一下idea怎么运行git命令),输入如下命令查看所有分支:git branch -a出现如下结果:masterremotes/origin/HEAD -> origin/masterremotes/origin/developremotes/origin/master从分支拉取数据:git checkout -b develop remotes/origin/develop出现如下结果:A

2021-01-14 12:23:47 465

原创 postgresql如何将字符型字段转换成整数型

ALTER TABLE table_name ALTER COLUMN day_type TYPE int2 USING day_type::smallint;

2020-06-11 21:31:10 1568

原创 postgres中怎么将字符串日期加上多少年或多少天

//将frist_certificate_date字段中的日期加上8年之后的日期(to_date(frist_certificate_date,‘yyyy-mm-dd’)::timestamp + ‘8 year’)其中 year 可以换成mouth或者day,分别标识加多少个月,多少天。//转换日期格式to_date(‘2018/10/19’, ‘yyyy-mm-dd’)...

2020-06-11 21:28:49 3269 2

原创 postgre将多个Point空间对象合并为一个MultiPoint

在有些时候,需要将postgresql数据库中很多个点空间对象合并成一个多点空间对象,可以使用以下postgis函数实现:ST_Multi(ST_Union(geom))geom是点对象geometry

2020-06-10 14:29:53 1869

原创 postgresql中geometry格式字段怎么转换成geojson格式-Java

Java方法:public Object convert2Geojson(int tid) throws ParseException { Map<String,Object> resultMap = new HashMap<>(); String sql = "select st_astext(geom) as wkt,z as height from cors_vrs where tid=?"; List<Map<String,Object&

2020-06-04 23:00:04 2818

空空如也

空空如也

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

TA关注的人

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