上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 66 下一页
摘要: package test;import com.google.gson.Gson;import com.google.gson.reflect.TypeToken;import java.util.ArrayList;import java.util.Iterator;import java.util.List;/** * @author */public class GsonTest { public static void main(String args[]){ //parseJSONObject(); //parseJSONA... 阅读全文
posted @ 2014-03-11 23:13 yshy 阅读(293) 评论(0) 推荐(0)
摘要: 在javase方式下使用HttpClient没有进行任何编码设置,本地从服务端获取到数据不存在中文乱码。但是将此段代码部署到Tomcat下面出现了中文乱码,此时设置:post.getParams().setParameter(HttpMethodParams.HTTP_CONTENT_CHARSET, "UTF-8"); 还是中文乱码。我当前的Tomcat环境不是UTF-8,在进行:BufferedReader reader = new BufferedReader( new InputStreamReader(post.getResponseBo... 阅读全文
posted @ 2014-03-07 20:06 yshy 阅读(1639) 评论(0) 推荐(0)
摘要: uncaught exception: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: AM.controller.User解决方法:在app.js最上面加上:Ext.Loader.setConfig({ enabled: true });Ext.Loader.setConfig({ enabled: true });Ext.application({ name: 'AM', appFolder: 'app', . 阅读全文
posted @ 2014-03-06 22:36 yshy 阅读(224) 评论(0) 推荐(0)
摘要: 异常如下:信息: Pausing Coyote HTTP/1.1 on http-80802014-3-6 14:52:50 org.apache.catalina.core.StandardService stop信息: Stopping service Catalina2014-3-6 14:52:50 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc严重: The web application [/tsmanager] registered the JDBC driver [com.mysql.jdbc.D 阅读全文
posted @ 2014-03-06 15:16 yshy 阅读(1656) 评论(0) 推荐(0)
摘要: 错误如下:2014-03-06 12:20:49,375-[TS] INFO http-8080-1 org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@b914b3: defining beans [dataSource,jdbcTemplate,xxtsService,wpushDao,httpUtil,cronSe 阅读全文
posted @ 2014-03-06 13:09 yshy 阅读(20476) 评论(0) 推荐(1)
摘要: 把用户输入的内容保存到数据库表中,然后用户输入时,进行模糊查询并把查询结果附到AutoCompleteTextView中。1:activity_main.xml 2:DbUtil.javapackage com.example.autotest;import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteOpenHelper;public ... 阅读全文
posted @ 2014-03-04 07:58 yshy 阅读(728) 评论(0) 推荐(0)
摘要: 打开apache-tomcat-6.0.32/bing/catalina.bat在首行添加:set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_07就可以了。 阅读全文
posted @ 2014-03-03 13:58 yshy 阅读(298) 评论(0) 推荐(0)
摘要: public class MainActivity extends Activity { private Button btn = null; private List> list = null; private XmlResourceParser xrp = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activit... 阅读全文
posted @ 2014-02-23 22:13 yshy 阅读(348) 评论(0) 推荐(0)
摘要: 文件结构如下:assets/info/info AssetManager am = this.getResources().getAssets(); InputStream input = null; try { input = am.open("info/info"); int len = input.available(); byte[] buffer = new byte[len]; input.read(buff... 阅读全文
posted @ 2014-02-21 14:02 yshy 阅读(1627) 评论(0) 推荐(0)
摘要: 1:关闭显示器xsetdpms force off2:定时关机十分钟之后自动关机:shutdown -h +10十二点自动关机:shutdown -h12:00直接关机:shutdown -h now 阅读全文
posted @ 2014-02-19 07:50 yshy 阅读(277) 评论(0) 推荐(0)
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 66 下一页