先来看看这个spring的配置文件的配置:表示com.xy.service包下的所有方法为为事务管理。execution(* com.aptech.jb.epet.dao.hibimpl.*.*(..))这样写应该就可以了 这是com.aptech.jb.epet.dao.hibimpl 包下所有的...
分类:
其他好文 时间:
2014-09-24 19:31:57
阅读次数:
147
启动Activity源码:(记得要加上Intent.FLAG_ACTIVITY_NEW_TASK)Intent intent = new Intent();intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setClass(getAppli...
分类:
其他好文 时间:
2014-09-24 16:58:27
阅读次数:
185
In this DocumentGoalSolutionReferencesAPPLIES TO:Workspace Manager - Version 9.0.1.0 to 12.1.0.1 [Release 9.0.1 to 12.1]Information in this document a...
分类:
数据库 时间:
2014-09-24 16:44:37
阅读次数:
531
Android中,虽然有很多方法(API或者shell命令)杀死后台`service`,但是仍然有很多程序几秒内再次启动,导致无法真正的杀死。这里主要着重介绍如何像 360 一样杀死Android后台服务,而不会再次启动。一、已知的 kill 后台应用程序的方法android.os.Process....
分类:
移动开发 时间:
2014-09-24 16:06:56
阅读次数:
320
KE.show({ id: 'txtMessage', imageUploadJson: '/ajax/Manager/keupload.ashx?ptype=news', fileManagerJson: '/ajax/Manager/kefilemanager.ashx?ptype=news'....
分类:
Web程序 时间:
2014-09-24 15:54:16
阅读次数:
347
代码如下:str是assets下面文件的路径例如 bear.mp3 的路径就是Str = "animal/bear.mp3" ;然后利用AssetManager 读取MP3文件 用MediaPlayer播放AssetManager am = getAssets(); AssetFileDesc...
分类:
其他好文 时间:
2014-09-24 15:50:17
阅读次数:
130
1.Android SDK Manager -> Tools -> Options
勾选 Force http://...sources to be fetched using http://...
2.C:\Windows\System32\drives\etc 用记事本打开hosts
给hosts末尾添加:
#Android包更新
203.2...
分类:
移动开发 时间:
2014-09-24 15:03:07
阅读次数:
129
如果拟开发一个网络应用的程序,首先考虑是否接入网络,在Android手机中判断是否联网可以通过ConnectivityManager 类的isAvailable()方法判断,首先获取网络通讯类的实例 ConnectivityManager cwjManager=(ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
一、判断网络连接是否可用,不可用跳转到设置界面
二、使用ConnectionChangeReceiver判断网...
分类:
移动开发 时间:
2014-09-24 14:46:57
阅读次数:
221
1 MMM高可用mysql方案1.1 方案简介MMM即Master-Master Replication Manager for MySQL(mysql主主复制管理器)关于mysql主主复制配置的监控、故障转移和管理的一套可伸缩的脚本套件(在任何时候只有一个节点可以被写入),这个套件也能对居于标准的...
分类:
数据库 时间:
2014-09-24 14:43:06
阅读次数:
304
1.在service中重写下面的方法,这个方法有三个返回值, START_STICKY是service被kill掉后自动重写创建@Override public int onStartCommand(Intent intent, int flags, int startId) { return .....
分类:
移动开发 时间:
2014-09-24 14:29:56
阅读次数:
180