摘要: pd = df.toPandas() resjson = pd.to_json(orient='records') return resjson 阅读全文
posted @ 2020-05-25 14:33 leechg 阅读(1414) 评论(0) 推荐(0)
摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <groupId>org.spring 阅读全文
posted @ 2020-05-22 15:41 leechg 阅读(301) 评论(0) 推荐(0)
摘要: 1 下载 whl 安装包在https://pypi.python.org/pypi 中搜索并下载 pymssql安装包 https://pypi.org/project/pymssql/#files 找到对应的版本点击下载2 安装在anaconda 目录的script文件夹中 执行安装命令,指向刚下 阅读全文
posted @ 2020-05-07 12:01 leechg 阅读(1450) 评论(0) 推荐(0)
摘要: select (t.shape.STAsText()) as shape,t.id from geotest t order by 1 offset 0 rows fetch next 10 rows only INSERT INTO geotest(shape) VALUES (geometry: 阅读全文
posted @ 2020-04-28 18:20 leechg 阅读(341) 评论(0) 推荐(0)
摘要: select st_astext(line) from geotest; INSERT INTO geotest (line) VALUES(GeomFromText('LINESTRING(0 0,1 1,2 2,3 3)')); SET @g2 = 'POLYGON((0 0,3 0,3 3,0 阅读全文
posted @ 2020-04-28 18:15 leechg 阅读(514) 评论(0) 推荐(0)
摘要: 在SQLServer中执行递归的时候出现错误 #子查父递归With Tree As( SELECT id, parent_id FROM dbo.data_catalog C UNION ALL SELECT P.id, P.parent_id FROM dbo.data_catalog P, Tr 阅读全文
posted @ 2020-04-22 09:53 leechg 阅读(3204) 评论(0) 推荐(0)
摘要: # 修改字段名称为临时字段 exec sp_rename 'data_config.description', description1,'COLUMN'; # 创建新的字段并设置为目标格式alter table data_config add description text ;# 把临时字段中的 阅读全文
posted @ 2020-04-14 11:45 leechg 阅读(3473) 评论(0) 推荐(0)
摘要: mount -t tmpfs -o size=40G tmpfs /home/arcgis/server/framework/runtime/spark/work 阅读全文
posted @ 2020-04-08 14:37 leechg 阅读(359) 评论(0) 推荐(0)
摘要: margin-top: 50%; transform: translateY(-50%); max-height: 100%; max-width: 100%; 阅读全文
posted @ 2020-03-31 15:29 leechg 阅读(163) 评论(0) 推荐(0)
摘要: SELECT t.table_name as "name", c.comments as "alias" FROM USER_TABLES t left join user_tab_comments c on t.TABLE_NAME = c.table_name select c.column_n 阅读全文
posted @ 2020-03-25 11:58 leechg 阅读(1537) 评论(0) 推荐(0)
摘要: 在idea中开发maven项目,经常遇到引用依赖不生效的情况。在确定依赖没有配置错误的情况下。 解决方法如下: 1.Reimport 一般来说也是解决不了的 2.clean 经过这一步基本上能解决 3.重启idea 最后的方法了,如果重启还不可以…… 阅读全文
posted @ 2020-03-25 10:52 leechg 阅读(1158) 评论(0) 推荐(0)
摘要: 通用工具模块不必要完整的打包,而是只需要在打包的时候保留自己编写的代码 添加依赖 <dependency> <!-- generate jar without third part jars --> <groupId>org.springframework.boot.experimental</gr 阅读全文
posted @ 2020-03-12 17:15 leechg 阅读(1379) 评论(0) 推荐(0)
摘要: import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; @Configuration public class My 阅读全文
posted @ 2020-02-19 17:01 leechg 阅读(1737) 评论(0) 推荐(0)
摘要: 在一些情况下Springboot项目中jpa扫描不到实体。比如默认扫描不到引用的其他项目中定义的实体。导致无法自动创建表。 解决方法,在Application中自定义实体扫描的包 阅读全文
posted @ 2020-01-16 11:46 leechg 阅读(3317) 评论(0) 推荐(0)
摘要: hibernate 项目启动时总会自动创建表,造成以下错误 经验证,是方言使用错误导致的。项目使用的数据库版本为Oracle11g,方言应该使用 org.hibernate.dialect.Oracle10gDialect 修改配置如下: 阅读全文
posted @ 2020-01-16 09:37 leechg 阅读(922) 评论(0) 推荐(0)
摘要: apache设置字体文件跨域 阅读全文
posted @ 2019-12-23 10:00 leechg 阅读(587) 评论(0) 推荐(0)
摘要: springboot 表单体积过大时报错: The multi-part request contained parameter data (excluding uploaded files) that exceeded the limit for maxPostSize set on the as 阅读全文
posted @ 2019-11-20 15:41 leechg 阅读(3849) 评论(0) 推荐(0)
摘要: nohup java -Xmx1024M -Xms1024M -jar app.jar --logging.level=warn --logging.path=/var/log/app--server.host=192.168.190.126 --spring.cloud.config.profil 阅读全文
posted @ 2019-11-04 16:13 leechg 阅读(303) 评论(0) 推荐(0)
摘要: PPTP 在VPN协议中,历史悠久,其端口固定,数据加密容易破解,现在慢慢的由其他的VPN协议进行替换。mac 更是直接取消了PPTP的支持。由于公司这边提供的就是PPTP。用windows10的时候发现无法连接。我换了安卓手机则可以连通。后来在goolge中查询了下。原来是因为windows 的 阅读全文
posted @ 2019-10-27 16:13 leechg 阅读(6) 评论(0) 推荐(0)
摘要: 1配置阿里镜像服务器 npm config set registry https://registry.npm.taobao.org --global npm config set disturl https://npm.taobao.org/dist --global npm config set 阅读全文
posted @ 2019-09-25 09:56 leechg 阅读(414) 评论(0) 推荐(0)
摘要: mount -t nfs 10.208.1.235:/home/gis/bigrasterdata/mxds/uploads /usr/local/website/upload/pythonmxds/uploads/ 阅读全文
posted @ 2019-09-10 17:25 leechg 阅读(424) 评论(0) 推荐(0)
摘要: 现在很少用自定义的ajax了,备份一下 阅读全文
posted @ 2019-08-20 10:34 leechg 阅读(280) 评论(0) 推荐(0)
摘要: 首先以调试模式启动编译好的jar包,监听端口为5005 然后配置eclipse远程调试 点击debug就可以了 阅读全文
posted @ 2019-08-06 14:45 leechg 阅读(440) 评论(0) 推荐(0)
摘要: mklink /D D:\temp\pythonmxds2 \\192.168.190.186\bigdata\kaoyanmxds 阅读全文
posted @ 2019-07-18 17:13 leechg 阅读(877) 评论(0) 推荐(0)
摘要: springboot在接收http请求的时候读取的request的inputStream,造成我们想自己读取inputStream的时候发现inputStream已经无法读取了。 为了读取inputStream,我们应该在springboot读取之前把inputStream的内容暂存先来。 1 这里 阅读全文
posted @ 2019-07-11 14:22 leechg 阅读(4409) 评论(0) 推荐(0)
摘要: 自定义上传组件,只需要在内部的值变化之后调用props中的onChange方法就可以托管在From组件中, 此外为了保证,初始化值发生变化后组件也发生变化,需要检测initialValue 变化,这是定义了 使用自定义上传组件 阅读全文
posted @ 2019-07-10 10:06 leechg 阅读(2476) 评论(2) 推荐(0)
摘要: // All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.10/esri/copyright.txt for details. //>>built ; ;sdfsd sd;;; define('esri/widgets... 阅读全文
posted @ 2019-05-24 11:08 leechg 阅读(2207) 评论(2) 推荐(0)
摘要: 替换绝对路径为空 阅读全文
posted @ 2019-05-23 16:45 leechg 阅读(617) 评论(0) 推荐(0)
摘要: # 必须配置此目录 location /upload { root D:\\upload\\; rewrite '^/upload(.*)$' $1 break; } 阅读全文
posted @ 2019-05-23 15:06 leechg 阅读(3243) 评论(0) 推荐(0)
摘要: #!coding: utf-8 import numpy as np import arcpy def addGRB2ToMosaic(grb2name): print "start add raster" mygdb = u'/mosaic/mosaic/gdbs/data.gdb/image' mdname = mygdb # u"Z:\\gdbs\\d... 阅读全文
posted @ 2019-05-19 13:43 leechg 阅读(339) 评论(0) 推荐(0)