- 博客(12)
- 资源 (8)
- 收藏
- 关注
转载 JAVA 计算两个经纬度关系计算
Java 计算两个GPS坐标点之间的距离1. Lat1 Lung1 表示A点经纬度,Lat2 Lung2 表示B点经纬度;2. a=Lat1 – Lat2 为两点纬度之差 b=Lung1 -Lung2 为两点经度之差;3. 6378.137为地球半径,单位为千米;计算出来的结果单位为千米。从google maps的脚本里扒了段代码,是用来计算两点间
2014-07-31 22:36:13 2463
原创 Spring jdbcTemplate 应用
Examples of JdbcTemplate class usageThis section provides some examples of JdbcTemplate class usage. These examples are not an exhaustive list of all of the functionality exposed by the Jd
2014-07-29 11:37:15 1518
原创 Spring 零碎整理 以后自己用的到
明确注册一个BeanFactoryPostProcessor使用BeanFactory实现时,您必须编写代码如下:
2014-07-29 08:09:10 1122
原创 Spring 数据库连接整理
1、数据库连接jdbc.properties配置详解jdbc.url=jdbc:hsqldb:hsql://localhost/xdbjdbc.username=sajdbc.password=jdbc.
2014-07-26 22:16:35 740
原创 Hibernate 数据库连接配置整理
Spring datasource 配置 base-package="com.xxx"/> location="classpath:/com/xxx/jdbc.properties"/> class="org.springframework.jdbc.datasource.DriverManagerDataSource"> nam
2014-07-26 22:00:05 1552
原创 Spring 依赖注入 (Dependencies)
一个典型的企业应用程序不包含一个对象(或bean在Spring的说法)。即使是最简单的应用程序有几个对象,共同努力,目前终端用户眼中一个连贯的应用程序。这在下一节解释了如何从定义的bean定义独立,完全实现应用程序对象协作来实现一个目标。
2014-07-26 16:35:33 2055
原创 关于tomcat Post 数据参数的问题 maxPostSize="0"
<!-- <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
2014-07-25 14:44:44 21317 7
原创 shiro SpringMvc Hibernate 入门
先来Web.xml<!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more contributor license agreements. See the NOTICE file ~ distributed with this work for additional informati
2014-07-18 14:16:10 1127
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人