`
strongant
  • 浏览: 64902 次
  • 性别: Icon_minigender_1
  • 来自: IT
社区版块
存档分类
最新评论
文章列表
http {     include       mime.types;     default_type  application/octet-stream;     #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '     #                  '$status $body_bytes_sent "$http_referer" '     #                  '"$http_user_agent" ...
当javaagent开发完成后,如:myagent.jar,需要通过tomcat方式启动,参数配置如下: for linux,需要在tomcat根目录的bin目录下创建setenv.sh文件,内容如下: set JAVA_OPTS="-javaagent:/opt/myagent.jar=appCode=10000" 或者也可以把参数设置在CATALINA_OPTS变量里面 set CATALINA_OPTS="-javaagent:/opt/myagent.jar=appCode=10000" for windows,也是类似的在bin目录下创 ...
  ClassPool pool = ClassPool.getDefault();  CtClass ctclass = pool.get(className);   上面二行代码,在web容器下是拿不到Class对象,官方已经解释了,如下: The default ClassPool returned by a static method ClassPool.getDefault() searches the same path that the underlying JVM (Java virtual machine) has. If a program is running ...
private static String getPortByMBean() { String portStr = null;; MBeanServer mBeanServer = null; ArrayList<MBeanServer> mBeanServers = MBeanServerFactory.findMBeanServer(null); if (mBeanServers.size() > 0) { mBeanServer = mBeanServers.get(0); } if (mBeanServer == nul ...
aop:around public void doAround(ProceedingJoinPoint joinPoint)   aop:before和aop:after public void before(JoinPoint joinPoint)   <aop:after-throwing pointcut="" method="afterThrowing" throwing="ex"/> throwing属性如果有配置,那么方法afterThrowing定义如下 public void afterTh ...
  <select id="selectByMap" parameterType="java.util.Map" resultMap="BaseResultMap">   select * from com_position where 1=1   <if test="posiZw!=null and posiZw!=''"> AND posi_zw = #{posiZw,jdbcType=INTEGER} </if> <if test="posiSh ...
1. 对接口预先添加一个自定义注解:@ServiceType   2. 系统启动时,通过Spring扫描有包含注解:@ServiceType的接口,然后通过ASM类库修改接口字节码   3. 用到一些辅助工具:java命令,asm-util.jar,asm.jar ============================================================ 具体操作: IIndividualTax接口代码如下(import相关代码省略): @ServiceType public interface IIndividualTax { Busine ...
java.lang.RuntimeException: You must use at least one, but no more than one http method annotation on: 解决办法:出现这个异常,说明要在使用的接口标注:@POST,@Path等javax.ws.rs.*这个路径下相关标注,不应该在实现类标注,想想就明白了。。。   javax.ws.rs.BadRequestException: HTTP 400 Bad Request 调用dubbo REST接口时候,出现这个问题有很多情况,如果配置都确认没有错误的情况下,请检查: 1. 如果接口 ...
  架构设计文档应该体现如下四要素: Logic View(逻辑视图) Physical View(物理视图) Network Structure(网络拓卜图) Workflow/Process Flow(流程图) 每一种图都有自己的画法,并且有比较经典的图,这些图的组合:框框+线条+文字说明   下面用职能图来描述流程图,之前画流程图都是用很简单的黑框框+线条,这样给客户看的话不是很生动,也不能一目了然     总体架构图,也叫接口调用图   架构设计文档还包含着:各种模块,子模块,功能设计,功能点描述。。。。 这种子模块、功能设计或者是功能点描述往 ...

2014年那些事

一. 关于工作 1. 到QZ前工作     工作地点在深圳,主要参与两个项目开发(国际金融项目,以及外部的医学会OA系统),在深圳的这段时间是从1月到3月15,15号回到了QZ,整整呆了三年。       参与国际金融项目开发,在这 ...
下面是jquery ajax调用后台模板: $.ajax({        url:'servlet/test',        type:'get',        dataType:'text',        contentType: "text/plain; charset=UTF-8",         timeout:600000,        cache:false,        success: function(){            alert('test');        }    });   如果红色部分参数没加进来,在IE8下运行 ...
修改mysql登录密码 update user set password=password('新密码') where user='root'; --这步不是必须,需要时候可以用   需要如下两个jar文件: mysql-connector-5.1.8.jar proxool-0.9.0RC3.jar   proxool重要配置: database.url=jdbc:mysql://127.0.0.1:3306/phonebbs?useUnicode=true&characterEncoding=gb2312&user=root&password ...
1。Blob数据类型,对应在java类型:java.sql.Blob,用byte[]存储,正常Blob类型用于图片、等大文本文件,它是以二进制形式来存储。在Mybatis中,只提供了BlobTypeHandler,用于把数据库Blob字段映射到java中的byte[]类型,如果要映射成String,必须实现TypeHandler类。 2。Clob数据类型,对应在java类型:java.sql.Clob,用byte[]存储,正常Clob类型用于存储大量文字,而不是文件。在Mybatis中,提供了ClobStringTypeHandler,用于把数据库Clob字段映射到java中的String类 ...
1. 在把中文保存到Cookie中时候,记得把中文加密,否则在运行时候会抛出异常,建议使用:URLEncoder方式     如:String val = URLEncoder.encode("你好!朋友。");              在获取cookie时候,把中文在解密下。。。       2. 这点比较关键,记得给cookie设置path属性,不然你在当前页面添加的cookie,当前页面可以访问到该cookie,其它页面就不行。该已经过测试。如下:      Cookie cookieName = new Cookie("key&qu ...
1. 使用Ext4.2 + 实现各个屏幕位置消息弹出框,这是老外写的一个EXT插件Notification.js 插件下载位置如下: https://github.com/EirikLorentsen/Ext.ux.window.Notification(插件下载位置) http://www.eirik.net/Ext/ux/window/Demo.html(作者提供的demo)   以一个经典例子:右下角弹出消息框,然后调用下面showMessage方法(修改自带例子按钮点击方法"ALL - All possible combinations")   fu ...
Global site tag (gtag.js) - Google Analytics