上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 66 下一页
摘要: 三月 30, 2014 10:06:40 上午 org.apache.cxf.common.jaxb.JAXBUtils logGeneratedClassNames信息: Created classes: com.test.server.HelloWorld, com.test.server.HelloWorldResponse, com.test.server.ObjectFactoryException in thread "main" org.apache.cxf.common.i18n.UncheckedException: No operation was fo 阅读全文
posted @ 2014-03-30 10:23 yshy 阅读(7631) 评论(1) 推荐(2) 编辑
摘要: 严重: Error listenerStart2014-3-29 22:25:20 org.apache.catalina.core.StandardContext start严重: Context [/cxfspring] startup failed due to previous errors at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420) at... 阅读全文
posted @ 2014-03-29 22:32 yshy 阅读(2398) 评论(0) 推荐(0) 编辑
摘要: 1:定义一个服务类,在服务类中使用AlarmManager 来管理服务的运行public class WtacService extends Service{ private AlarmManager alarmManager = null; private PendingIntent alarmIntent = null; @Override public IBinder onBind(Intent arg0) { return null; } @Override public void onCreate() { ... 阅读全文
posted @ 2014-03-26 22:46 yshy 阅读(935) 评论(0) 推荐(0) 编辑
摘要: 说明:在使用Tomcat6.0.32+Spring3.05+Quartz1.8.6+Mysql5.5.9 此项目在我本机上没有问题,当我把mysql 脚本导入到服务器上,将数据源配置修改为服务器对应的mysql时,再次运行程序出现以下问题,错误信息如下:严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCrea 阅读全文
posted @ 2014-03-24 10:19 yshy 阅读(5594) 评论(0) 推荐(0) 编辑
摘要: public Wcrash getWcrashInfo(int id) { String sql = "select plateform_id,android_version,app_version_code,app_version_name,device_id," + "model,brand,product,stack_trace,crash_date,package_name from wcrash where id = ? "; return this.jdbcTemplate.queryForObject( ... 阅读全文
posted @ 2014-03-19 16:38 yshy 阅读(4202) 评论(0) 推荐(0) 编辑
摘要: 1:MainActivity.javapublic class MainActivity extends Activity { private TextView tvInfo = null; private BroadcastReceiver receiver = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity... 阅读全文
posted @ 2014-03-18 18:44 yshy 阅读(1646) 评论(0) 推荐(0) 编辑
摘要: 原先照着Extjs4.0.7官方文档写了一个GridPanel的列子,没有什么问题,今天又自己写了一个,效果如下,内容肯定拿到就是不显示:经过一段代码排查后,问题出在了自定义Model时将fields误写成field,经改正后问题解决。/*============Model==========*/Ext.define('Wpush', { extend: 'Ext.data.Model', fields: ['nsrsbh', 'title', 'tssj', 'tsflag']}); 阅读全文
posted @ 2014-03-15 11:46 yshy 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 最近在使用quartz,在mysql中其数据库表中的时间都是使用bigint类型存储的,要想使其查询结果显示为yyyy-mm-dd hh:MM:ss的格式需要使用from_unixtime()函数,bigint类型不是时间戳类型,所以要除以1000转换为时间戳类型。select from_unixtime(start_time/1000) from qrtz_triggers 阅读全文
posted @ 2014-03-12 08:14 yshy 阅读(3909) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(291) 评论(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 阅读(1623) 评论(0) 推荐(0) 编辑
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 66 下一页