- 博客(10)
- 收藏
- 关注
原创 报错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关注的人