上一页 1 2 3 4 5 6 7 8 ··· 20 下一页
摘要: 1:修改pom.xml 将“jar”改为“war” <packaging>war</packaging> 将: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</ 阅读全文
posted @ 2020-12-08 17:35 dcrenl 阅读(197) 评论(0) 推荐(0)
摘要: 一:使用@CrossOrigin注解 @CrossOrigin @RequestMapping(value = "/get") public HashMap<String, Object> get(@RequestParam String name) { HashMap<String, Object 阅读全文
posted @ 2020-12-08 17:22 dcrenl 阅读(144) 评论(0) 推荐(0)
摘要: import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springfra 阅读全文
posted @ 2020-12-08 17:06 dcrenl 阅读(159) 评论(0) 推荐(0)
摘要: spring boot 创建项目引用mybatis后,直接运行会提示: Cannot determine embedded database driver class for database type NONE 因为springboot启动时会自动注入数据源 使用@SpringBootApplic 阅读全文
posted @ 2020-12-08 16:55 dcrenl 阅读(75) 评论(0) 推荐(0)
摘要: var GPS = { PI : 3.14159265358979324, x_pi : 3.14159265358979324 * 3000.0 / 180.0, delta : function (lat, lon) { // Krasovsky 1940 // // a = 6378245.0 阅读全文
posted @ 2020-12-05 09:37 dcrenl 阅读(3497) 评论(0) 推荐(0)
摘要: package com.geotmt.billingcenter.common.utils; import org.datanucleus.util.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; impor 阅读全文
posted @ 2020-11-26 14:02 dcrenl 阅读(2669) 评论(0) 推荐(0)
摘要: OpenOffice 源代码发布至今已经有 20 年了。文档基金会近日发布公开信,表示说:“LibreOffice 是 OpenOffice 的未来。我们将会全力以赴”。以此呼吁那些依然使用 OpenOffice 的用户使用 LibreOffice。 文档基金会表示当前开源社区拥有丰富多样的免费和开 阅读全文
posted @ 2020-11-19 13:38 dcrenl 阅读(186) 评论(0) 推荐(0)
摘要: 在项目中遇到要取两个表差集的情况 假设有两个表tblNZPostCodes, NZPostcode 两个表中存储的都是新西兰的post code信息,字段一致,只是数据上有所差异。 1. Union 获取两个表的合集并且自动过滤重复数据 Select * from tblNZPostCodes Un 阅读全文
posted @ 2020-11-19 13:27 dcrenl 阅读(7637) 评论(0) 推荐(0)
摘要: 有写字典数据不会频繁更新,但是会频繁查询,想要减少数据库链接次数,把内容缓存到项目的全局变量中,提高方法查询速度 import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; import java.util.H 阅读全文
posted @ 2020-11-19 13:11 dcrenl 阅读(12763) 评论(0) 推荐(0)
摘要: 修改mysql的配置文件:my.ini 将其只的: sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" 修改为: sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBST 阅读全文
posted @ 2020-11-19 13:09 dcrenl 阅读(4665) 评论(0) 推荐(1)
上一页 1 2 3 4 5 6 7 8 ··· 20 下一页