03 2014 档案

摘要:开发环境:NetBeans7.4Tomcat 6.0.32一 服务端:1:新建JavaWeb工程 cxfspring-server,导入jar包如下图所示:2:在web.xml文件中添加如下配置项: contextConfigLocation classpath:spring-config.xml org.springframework.web.context.ContextLoaderListener CXFServlet org.apache.cxf.transport.servl... 阅读全文
posted @ 2014-03-30 12:01 yshy 阅读(1349) 评论(0) 推荐(0) 编辑
摘要:三月 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 阅读(7640) 评论(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 阅读(2400) 评论(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 阅读(943) 评论(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 阅读(5613) 评论(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 阅读(4210) 评论(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 阅读(1659) 评论(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 阅读(628) 评论(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 阅读(3925) 评论(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 阅读(1628) 评论(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 阅读(221) 评论(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 阅读(1653) 评论(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 阅读(20454) 评论(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 阅读(716) 评论(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 阅读(291) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示