生活轨迹SSH服务端
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
<!-- 默认找的文件名 -->
</listener>
<!-- Context Configuration locations for Spring XML files -->
<context-param>
<param-name>contextConfigLocation</param-name>
<!-- <param-value>/WEB-INF/applicationContext-*.xml,classpath*:applicationContext-*.xml</param-value> -->
<param-value>classpath:beans.xml</param-value>
</context-param>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- Character Encoding filter -->
<filter>
<!-- Character Encoding filter -->
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
代码不完善,敬请期待,如有需要,请联系1228447666@qq.com
生活轨迹Android端
package com.weiyoung.yourlifecircle;
import com.baidu.mapapi.BMapManager;
import com.baidu.mapapi.MKGeneralListener;
import com.baidu.mapapi.map.MKEvent;
import android.app.Application;
import android.content.Context;
import android.widget.Toast;
public class YLC_APPLICATION extends Application {
private static YLC_APPLICATION instance=null;
BMapManager bMapManager=null;
public static final String ip="10.120.11.253:8080";
public static final String STR_KEY="mTz6OcEZL1vsVubcfUMqCUiM";
public boolean m_bKeyRight = true;
@Override
public void onCreate() {
// TODO Auto-generated method stub
super.onCreate();
instance=this;
initBMapManager(this);
}
public void initBMapManager(Context context) {
// TODO Auto-generated method stub
if(bMapManager==null){
bMapManager=new BMapManager(context);
}
if(!bMapManager.init(STR_KEY, new MyMKGeneralListener())){
Toast.makeText(YLC_APPLICATION.getInstance().getApplicationContext(),
"BMapManager 初始化错误!", Toast.LENGTH_LONG).show();
}
}
public static YLC_APPLICATION getInstance(){
return instance;
}
static class MyMKGeneralListener implements MKGeneralListener{
@Override
public void onGetNetworkState(int isError) {
// TODO Auto-generated method stub
if(isError==MKEvent.ERROR_NETWORK_CONNECT){
Toast.makeText(YLC_APPLICATION.getInstance().getApplicationContext(), "您的网络出错啦!",
Toast.LENGTH_LONG).show();
}else if (isError == MKEvent.ERROR_NETWORK_DATA) {
Toast.makeText(YLC_APPLICATION.getInstance().getApplicationContext(), "输入正确的检索条件!",
Toast.LENGTH_LONG).show();
}
}
@Override
public void onGetPermissionState(int isError) {
// TODO Auto-generated method stub
//非零值表示key验证未通过
if (isError != 0) {
//授权Key错误:
Toast.makeText(YLC_APPLICATION.getInstance().getApplicationContext(),
"请在 YLC_APPLICATION.java文件输入正确的授权Key,并检查您的网络连接是否正常!error: "+isError, Toast.LENGTH_LONG).show();
YLC_APPLICATION.getInstance().m_bKeyRight = false;
}
else{
YLC_APPLICATION.getInstance().m_bKeyRight = true;
Toast.makeText(YLC_APPLICATION.getInstance().getApplicationContext(),
"key认证成功", Toast.LENGTH_LONG).show();
}
}
}
}
内容不完善,待增加!敬请期待
SSH配置好的框架
这个框架以MYSQL作为数据仓库搭建而起的,这个demo框架肯定是好使的。希望能够帮助到大家
SmartUpload(utf-8)
利用该smartUpload.jar可以成功解决不是utf-8的乱码问题,解决你开发过程中的遇到的小问题。如果你的页面用的编码不是utf-8,有乱码的话,请联系我。
android浏览器小程序
大家如果是自己在学习设计android的浏览器,可以参考一下
asp.net 4.0动态网站开发基础教程(c#2010篇)课后答案
答案不太全,希望大家能够理解了。后期会把没有的更新上去。
主要就是选择填空题的答案
快速IIS调试
在这个工具放在自己所写的html代码中的那个文件夹,双击启动,即可通过浏览器访问到