码迷,mamicode.com
首页 > 全部
Spring MyBatis Oracle 多数据源
数据源1 数据源2 注:xx1Mapper.java 和 xx1Mapper.xml 、 xx2Mapper.java 和 xx2Mapper.xml 上下文中不能出现同名的 结果:操作db1 调用 mapper1 ,操作db2 调用 mapper2 ...
分类:数据库   时间:2016-08-06 08:36:55    阅读次数:239
RocketMQ 加载配置文件
BrokerStartup.java MixAll.java 由资源文件生成对象: 首先获取资源文件 获取对象的所有set开头的方法 截取方法,如:setMethod1 则为 method1 通过key获取properties文件value 获取该方法参数类型 调用该方法。 从而完成set 。 ...
分类:其他好文   时间:2016-08-06 08:38:46    阅读次数:1115
生成字母+数字6位字符串
...
分类:其他好文   时间:2016-08-06 08:35:44    阅读次数:165
context:annotation-config
Activates various annotations to be detected in bean classes: Spring's @Required and @Autowired, as well as JSR 250's @PostConstruct, @PreDestroy and ...
分类:其他好文   时间:2016-08-06 08:37:15    阅读次数:223
字母数字组合 正则
http://www.w3school.com.cn/jsref/jsref_obj_regexp.asp/^[0-9a-zA-Z]*$/g ...
分类:其他好文   时间:2016-08-06 08:35:45    阅读次数:143
context:propertyPlaceholder
Activates replacement of ${...} placeholders by registering a PropertySourcesPlaceholderConfigurer within the application context. Properties will be ...
分类:其他好文   时间:2016-08-06 08:38:03    阅读次数:189
RocketMQ broker jvm 监控
1. jps 获取要监控broker jvm 的进程ID jsp 2. nohup 输出监控日志 nohup jstat -gc -t [pid] [interval] -t 会在每一条记录前加时间戳,执行命令间隔interval(毫秒) 3. 想要结束监控时Ctrl+C 4. 查看日志 cat n ...
分类:其他好文   时间:2016-08-06 08:35:17    阅读次数:216
context:
Spring Bean Configuration File 命名空间 xmlns:context="http://www.springframework.org/schema/context" 语法 http://www.springframework.org/schema/context htt ...
分类:其他好文   时间:2016-08-06 08:36:41    阅读次数:117
HAService 刨坑
High availability is a characteristic of a system, which describes the duration (length of time) for which the system is operational. HAService.java 即 ...
分类:其他好文   时间:2016-08-06 08:37:34    阅读次数:136
RocketMQ 服务器3模式
22 a b-s sh mqbroker -c $ROCKETMQ_HOME/conf/2m-2s-async/broker-a.properties &sh mqbroker -c $ROCKETMQ_HOME/conf/2m-2s-async/broker-b-s.properties & 23 ...
分类:其他好文   时间:2016-08-06 08:34:41    阅读次数:166
主键冲突异常 DuplicateKeyException
代码片段 ...
分类:其他好文   时间:2016-08-06 08:37:31    阅读次数:1474
问题:虚拟机老生代垃圾回收频繁出现
case: runbroker.sh JAVA_OPT 使用的是默认参数,broker运行过程中新生代垃圾回收次数较少,频繁出现老生代垃圾回收 cms gc ,并且老生代内存回收不掉。造成卡顿、消息发送失败。最终导致java heap 被占用完,broker 宕机。求教! 内存分析: broker瘫 ...
分类:其他好文   时间:2016-08-06 08:35:48    阅读次数:187
context:component-scan
Scans the classpath for annotated components that will be auto-registered as Spring beans. By default, the Spring-provided @Component, @Repository, @S ...
分类:其他好文   时间:2016-08-06 08:35:37    阅读次数:240
加载 bean*.xml
入口 最后发现 java.util.regex.Pattern 调用matches() 方法 从而得知 支持正则表达式。 总结: 冒号分析 /** * A {@link ResourcePatternResolver} implementation that is able to resolve a ...
分类:其他好文   时间:2016-08-06 08:34:20    阅读次数:247
适配器模式(Adapter pattern)
https://en.wikipedia.org/wiki/Adapter_pattern It allows the interface of an existing class to be used as another interface. It is often used to make e ...
分类:其他好文   时间:2016-08-06 08:34:37    阅读次数:182
js 设置回车事件
...
分类:Web程序   时间:2016-08-06 08:35:59    阅读次数:223
四)绘树
实测代码: 打印结果: 格式化结果: 实际项目应用见:SMSE 为 easyui-tree ...
分类:其他好文   时间:2016-08-06 08:33:20    阅读次数:148
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!