随笔分类 -  Java

摘要:1. 配置类import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Bean; import org.sprin 阅读全文
posted @ 2024-01-24 10:55 ParamousGIS 阅读(149) 评论(0) 推荐(0) 编辑
摘要:1.配置类import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Bean; import org.spring 阅读全文
posted @ 2024-01-24 10:44 ParamousGIS 阅读(33) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.51cto.com/u_16175468/8063959https://blog.51cto.com/u_16213690/7305835import org.antlr.v4.runtime.*; import org.antlr.v4.runtime.tree.* 阅读全文
posted @ 2024-01-23 11:00 ParamousGIS 阅读(158) 评论(0) 推荐(0) 编辑
摘要:1) jfireEL —— 高性能 EL 表达式解析框架jfireEL 是快速的 EL 表达式解析器,支持丰富的 EL 表达式,7 倍于 SpringEL 的超高性能。2) Aviator —— 轻量级高性能 Java 表达式引擎Aviator 是一个高性能、轻量级的 Java 语言实现的表达式求值 阅读全文
posted @ 2024-01-23 10:24 ParamousGIS 阅读(1546) 评论(0) 推荐(0) 编辑
摘要:一般Java通过javax.imageio.ImageIO操作jpeg与png没有问题,但是操作tiff时就会报错,此时只要引入如下的包即可,不需要修改代码即可兼容tiff <dependency> <groupId>com.twelvemonkeys.imageio</groupId> <arti 阅读全文
posted @ 2023-05-09 09:13 ParamousGIS 阅读(266) 评论(0) 推荐(0) 编辑
摘要:BSON [bee·sahn]是Binaryary JSON的缩写,是类似于JSON数据结构的二进制编码的序列化文档。像JSON一样,BSON支持数组、对象的嵌套,BSON还扩展了JSON的数据类型,如:BSON具有日期类型和BinData类型。看一个例子: { name:"lemo", age:" 阅读全文
posted @ 2022-07-22 16:15 ParamousGIS 阅读(246) 评论(0) 推荐(0) 编辑
摘要:1. 不包含thumb.jpg,但包含_HH_,并以.jpg结尾 2. 不包含_Check.xml,但以.xml结尾 阅读全文
posted @ 2021-10-25 11:21 ParamousGIS 阅读(102) 评论(0) 推荐(0) 编辑
摘要:在路网操作中,会遇到将首尾相连的多条道路合并成一条道路的情况,使用JTS中的LineMerger类,可以很好的完成这个操作,代码:WKTReader reader = new WKTReader();Geometry geom_1 = reader.read("LINESTRING (116.96832000000000562 36.64882000000000062, 116.968490000... 阅读全文
posted @ 2020-05-10 11:11 ParamousGIS 阅读(1051) 评论(0) 推荐(0) 编辑
摘要:第一种解决方法:构建maven项目时,获取某个jar包,该jar包不在maven中央仓库中,在自己搭建的私服仓库中。本地maven仓库已经存在该jar包,编译时却一直提示,官方maven仓库无法获取到该包。如下,修改本地maven仓库jar中的_remote.repositories文件进行一些修改即可。具体原因感兴趣的同学可以自行搜索,后续会补充问题的详解。例如:#NOTE: This is a... 阅读全文
posted @ 2020-04-08 22:31 ParamousGIS 阅读(2368) 评论(0) 推荐(0) 编辑
摘要:Java字符串占位符(commons-text)替换https://blog.csdn.net/varyall/article/details/83651798 org.apache.commons commons-text 1.6 @Testpublic void test4() { String param1 = String.format("hi,%... 阅读全文
posted @ 2019-02-10 18:18 ParamousGIS 阅读(1107) 评论(0) 推荐(0) 编辑
摘要:1.打印头信息@RequestMapping(value = "/upload", method = RequestMethod.POST)@ResponseBodypublic List upload(@RequestParam(name = "files", required = true) MultipartFile[] multipartFiles, @RequestHead... 阅读全文
posted @ 2018-12-31 22:41 ParamousGIS 阅读(207) 评论(0) 推荐(0) 编辑
摘要:https://docs.spring.io/spring-boot/docs/2.0.1.RELEASE/reference/htmlsingle/pom.xml mysql mysql-connector-java 8.0.11 com.alibaba druid-spring-boot-starter 1.1.9 org.springframewor... 阅读全文
posted @ 2018-04-29 20:57 ParamousGIS 阅读(379) 评论(0) 推荐(0) 编辑
摘要:https://docs.spring.io/spring-boot/docs/2.0.1.RELEASE/reference/htmlsingle/pom.xml mysql mysql-connector-java 8.0.11 org.apache.curator curator-framework 2.12.0 org.apache.curator... 阅读全文
posted @ 2018-04-29 18:52 ParamousGIS 阅读(243) 评论(0) 推荐(0) 编辑
摘要:pom.xm application.properties Redis的Session配置类RedisSessionManagerConfiguration,主要是实现JSON格式的系列化 RedisTemplate的配置 Redis缓存配置RedisCacheManagerCustomizer 缓 阅读全文
posted @ 2018-04-29 12:01 ParamousGIS 阅读(475) 评论(0) 推荐(0) 编辑
摘要:pom.xml application.properties 启动类 配置类 实体类 Menu 实体类 MenuNode 缓存应用 Controller类 阅读全文
posted @ 2018-04-28 17:27 ParamousGIS 阅读(296) 评论(0) 推荐(0) 编辑
摘要:pom.xml application.properties 启动类 注册Redis消息监听 Redis消息处理类 Redis配置类 JSON转换配置类 实体类 User 实体类Department DAO类 Service类 Controller类 完! 阅读全文
posted @ 2018-04-28 11:00 ParamousGIS 阅读(180) 评论(0) 推荐(0) 编辑
摘要:在MongoDB中插入如下的数据 pom.xml application.properties 启动类 实体类Baike 实体类Comment DAO类(强大的MongoTemplate) Service类 Controller类 阅读全文
posted @ 2018-04-26 14:20 ParamousGIS 阅读(437) 评论(0) 推荐(0) 编辑
摘要:application.properties logback.xml 阅读全文
posted @ 2018-04-25 19:44 ParamousGIS 阅读(289) 评论(0) 推荐(0) 编辑
摘要:pom.xml application.properties 数据库连接池的配置 强大的JpaRepository 实体User 实体Department Serivce类 RestController类 阅读全文
posted @ 2018-04-25 19:28 ParamousGIS 阅读(276) 评论(0) 推荐(0) 编辑
摘要:pom.xml application.properties 连接池的配置类 SQL DAO类 Service类 RestController类 阅读全文
posted @ 2018-04-25 19:09 ParamousGIS 阅读(249) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示