上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 66 下一页
摘要: 1:所需jar包2:Mysql数据库表内容如下:3:代码结构如下:(1)User.javapublic class User { private int id; private String name; private String no; private String nativePlace; private String edu; private Double math; private Double computer; private Double english; private Double sumcount; privat... 阅读全文
posted @ 2014-04-02 17:29 yshy 阅读(530) 评论(0) 推荐(0)
摘要: 开发环境: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 阅读(1359) 评论(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 阅读(7656) 评论(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 阅读(2407) 评论(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 阅读(958) 评论(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 阅读(5644) 评论(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 阅读(4225) 评论(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 阅读(1675) 评论(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 阅读(640) 评论(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 阅读(3932) 评论(0) 推荐(0)
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 66 下一页