- 浏览: 77577 次
- 性别:
- 来自: 深圳
-
最新评论
-
lixia0417:
楼主,你的图片不见了。也就是说ByteBuf的申请速度大于释放 ...
Netty OOM案例
文章列表
REDISHELPER
- 博客分类:
- spring
package saas.framework.cache;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import saas.framework.cache.redis.cmds.RedisCmdsFactory;
import saas.framework.service.SpringContextHolder;
public class Red ...
mysql 工具结合spring打印日志
- 博客分类:
- spring
/**
* Copyright (C) 2015 Winbons Technology Software Co.,Ltd
* All Rights Reserved.
* Development of this software Winbons Technology Software Co.,Ltd.
* Without the formal written consent of the Company,
* any other individuals, groups may not use,
* copy, modify, or distribute this ...
druid-1.0.13.jar
-------------------------------
<bean id="stat-filter" class="com.alibaba.druid.filter.stat.StatFilter">
<!--慢SQL统计,如果SQL执行时间超过一定时间则记录为慢SQL -->
<property name="slowSqlMillis" value="3000" />
<!--慢SQL统计日志输出 -->
&l ...
package com.winbons.registry.redis;
import com.alibaba.dubbo.common.URL;
import com.alibaba.dubbo.registry.Registry;
import com.alibaba.dubbo.registry.RegistryFactory;
public class RedisRegistryFactory implements RegistryFactory {
@Override
public Registry getRegistry(URL url) {
retu ...
-----------
package saas.framework.event;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.ApplicationEventMulticaster;
import org.springframework.stereotype.Service;
@Service
pub ...
mysql日期类函数
- 博客分类:
- mysql
SELECT UNIX_TIMESTAMP(NOW()) 把日期转化秒
DATE_FORMAT(CREATE_DATE,'%Y-%m-%d') datetime转string
date_format(#{date,jdbcType=TIMESTAMP},'%Y-%m-%d')
SELECT DATE_FORMAT(CREATE_DATE,'%Y-%m-%d') FROM hk_lovego_hotsearch
STR_TO_DATE('2017-04-18 17:48','%Y-%m-%d %H:%i'); 固定的string转date
...
herbanate类型转换
- 博客分类:
- spring
用了这个必须用hibernate材有效
List<ActivityShareAcl> aShareAcls= baseDao.find("FROM ActivityShareAcl WHERE activityId = ?",activityId)
List<ActivityShareAcl> aShareAcls = jdbcTemplate.query(sb.toString(), new Long[] { activityId },
new BeanPropertyRowMapp ...
业务
private void updateDynamicAndSolrInfo(Long leadsId, Long userId) {
Leads leads = baseDao.get(Leads.class, leadsId);
final String leadsName = leads.getCompName();
final UserPhotoVO userPhotoVO = userInfoManager.getById(userId);
final String msg = SecurityUtils.getCurrentUser().getRealName ...
@RequestParam("ids") String id 参数为ids,类型string
@RequestParam(value = "activityId", required = true) Long activityId 参数为活动id,参数必填
HttpServletRequest request参数防request
@ModelAttribute Activity activity 把参数自动封装成实体,,剩余的放入request
8月份入职一家新公司,开始满怀期许。。进来后发现公司重组,重构。老员工几乎全走,剩一两个。
但系统业务尤其复杂。
在8月份接到任务,考虑到根本不熟悉业务。于是乎我推了。。叫其他同事搞,他经验丰富不少。果然上线之后也是问题一堆,坑啊。
9月份接一任务,开始限定国庆之前完成,设立挑战目标。那需求,同事之间都是新人,但没办法,还是接了。
眼看9.20号,我小孩快出生了。我曾想过离开。但经过与管理沟通,还是抗下来,致我产假都只休3天
一个月来,大家不断磨合,适应老接口,眼看要完成了,时间将至。准备上线
但上线流程,
1.要申请
填写申请单 (见图申请.jp ...
package snippet;
public class Snippet {
public void testThreadLocal() {
final ThreadLocal<String> local = new ThreadLocal<String>();
work(local);
}
public void testInheritableThreadLocal() {
final ThreadLocal<String> local = new InheritableThreadLocal<String>();
...
springmvc 前端字段属性 转化
- 博客分类:
- spring
添加属性编辑
import java.beans.PropertyEditorSupport;
import saas.crm.market.activity.model.ActivityType;
public class ActivityTypeEditor extends PropertyEditorSupport {
@Override
public void setAsText(String text) throws IllegalArgumentException {
setValue(ActivityType.toType(text));
...