- L1 L2 L3 缓存
京天不下雨
windows缓存windows
L1L2L3缓存L1Cache(一级bai缓存)是CPU第一层高速缓存,分为数据缓存和指令缓存。du内置的zhiL1高速缓存的容量和结构对daoCPU的性能影响较大,不过高速缓冲存储器均由静态RAM组成,结构较复杂,在CPU管芯面积不能太大的情况下,L1级高速缓存的容量不可能做得太大。一般服务器CPU的L1缓存的容量通常在32—4096KB。L2由于L1级高速缓存容量的限制,为了再次提高CPU的运
- 【OCPP】ocpp1.6协议第5.17 TriggerMessage章节的介绍及翻译
"啦啦啦"
ocpp1.6协议开源协议学习
目录5.17TriggerMessage-概述主要内容1.概要2.操作流程3.参数说明4.示例4.1.TriggerMessage请求示例4.2.TriggerMessage响应示例5.应用场景实际应用结论5.17TriggerMessage-原文译文5.17TriggerMessage-概述在OCPP1.6协议中,第5.17章节描述了TriggerMessage操作。这个操作允许中央系统(Cen
- SOLID 原则
jzpfbpx
golang
单一功能原则单一功能原则(Singleresponsibilityprinciple)规定每个类都应该有一个单一的功能,并且该功能应该由这个类完全封装起来。所有它的(这个类的)服务都应该严密的和该功能平行(功能平行,意味着没有依赖)。保持一个类专注于单一功能点上的一个重要的原因是,它会使得类更加的健壮。开闭原则开闭原则(TheOpen/ClosedPrinciple,OCP)规定“软件中的对象(类
- 深透析面向对象的编码设计规则
全栈神
java前端javascript
一、面向对象的五大设计原则:SOLID原则SOLID是面向对象设计中的五个基础原则的缩写,分别是:单一职责原则(SingleResponsibilityPrinciple,SRP)开放封闭原则(Open/ClosedPrinciple,OCP)里氏替换原则(LiskovSubstitutionPrinciple,LSP)接口隔离原则(InterfaceSegregationPrinciple,IS
- 创建索引oracle 很慢,Oracle 11G – 插入时索引的性能影响
智臾科技
创建索引oracle很慢
目的验证插入没有PK/索引的记录加上后来创建的记录是否真的比插入PK/索引更快.注意这里的要点不是索引需要更多时间(很明显),但总成本(不带索引的插入创建索引)高于(使用索引插入).因为我被教导插入没有索引并且稍后创建索引因为它应该更快.环境DELLLatitude核心i72.8GHz8G内存和Windows上的Windows764位SSD硬盘Oracle11GR264位背景我被教导插入没有PK/
- Java 面向对象的三大特性和五大基本原则
一枚码仔
Javajava开发语言
目录三大基本特性1.封装2.继承3.多态五大基本原则1.单一职责原则(SRP)2.开放封闭原则(OCP)3.里氏替换原则(LSP)4.依赖倒置原则(DIP)5.接口隔离原则三大基本特性1.封装封装,就是将客观事物抽象为逻辑实体,实体的属性和功能相结合,形成一个有机的整体。并对实体的属性和功能实现进行访问控制,向信任的实体开放,对不信任的实体隐藏。,通过开放的外部接口即可访问,无需知道功能如何实现。
- Uboot 网卡移植遇到的问题与解决方法
Jason416就是我
UbootubootUSB网卡
前言在上一章节中描述的两个问题,这里做下简单回顾。情况一在运行到接收以太帧的时候,出现了dataabrot异常,如下:dataabortpc:[]lr:[]relocpc:[]lr:[]sp:7ae54ce0ip:00000014fp:00000fffr10:00000fffr9:7ae54ed8r8:0000002er7:00000fffr6:7aede303r5:0000001cr4:7aed
- the Winter Olympics
俗世尘沙
正文AbriefguidetoeverysportattheWinterOlympics冬奥会各运动项目简介Alpineskiing,11goldmedalsawarded高山滑雪,颁发11枚金牌加入会员可查看Thedisciplinesincludedownhill,thefastestevent;super-G,withmoreturnsadded;giantslalom,stillmoret
- conda进行transformers安装
大多_C
conda
首先建立新环境condacreate-nmyenvpython=3.8安装numpy和pytorchcondainstallnumpycondainstallpytorchtorchvisiontorchaudiocpuonly-cpytorch-cconda-forge其余的一些环境配置huggingface_hub0.16.4py_0huggingfaceimportlib-metadata6
- OCP-042之:控制文件和日志文件
-风中叮铃-
数据库专栏oracle数据库
控制文件和日志文件1数据库控制文件控制文件中记载了数据库的物理结构等重要的数据库信息,如数据文件和日志文件信息。控制文件是用于维护数据库完整性的重要文件。Oracle正是使用该文件在实例和数据库之间建立关联的。当发生实例故障时,控制文件记载的信息可用于实例的恢复。1.1控制文件概述每个Oracle数据库都有一个控制文件,它是一个记录数据库物理结构的小型二进制文件。Oracle数据库通常使用控制文件
- CentOS 7 将YUM源更换为国内源的保姆级教程
一个代码猎人
linuxcentoslinux运维
CentOS7将YUM源更换为国内源的保姆级教程在使用CentOS7的过程中,默认的YUM源可能会导致下载速度较慢或连接不稳定。为了提高下载速度,您可以将YUM源更换为国内的镜像源。本文将提供一个简单的教程,帮助您轻松完成这一过程。1.备份原有的YUM源配置在更换YUM源之前,建议先备份原有的YUM源配置文件,以防万一需要恢复。打开终端。备份YUM源配置文件:sudocp-r/etc/yum.re
- AMD在行动:揭示应用程序跟踪和性能分析的力量
109702008
人工智能#ROCm编程人工智能AMD
AMDinAction:UnveilingthePowerofApplicationTracingandProfiling—ROCmBlogs导言Rocprof是一款强大的工具,设计用于分析和优化基于AMDROCm平台上运行的HIP程序的性能,帮助开发者找出并解决性能瓶颈。Rocprof提供了多种性能数据,包括性能计数器、硬件追踪和运行时API/活动追踪等。Rocprof是一个命令行界面(CLI)
- 【转】oracle之报错:ORA-00054: 资源正忙,要求指定 NOWAIT
aili6206
数据库
问题如下:SQL>connscott/tiger@vm_databaseConnectedtoOracleDatabase11gEnterpriseEditionRelease11.1.0.6.0Connectedasscott。。。。。。SQL>droptablestudent2;droptablestudent2ORA-00054:资源正忙,但指定以NOWAIT方式获取资源,或者超时失效===
- 【OCPP】ocpp1.6协议第5.12章节Remote Stop Transaction的介绍及翻译
"啦啦啦"
ocpp1.6协议开源协议学习
目录5.12RemoteStopTransaction-概述1.目的2.消息类型2.1RemoteStopTransaction.req2.2RemoteStopTransaction.conf3.流程描述4.状态和值域5.特殊情况6.操作后续5.12远程停止交易RemoteStopTransaction-原文译文5.12RemoteStopTransaction-概述在OCPP1.6协议中,第5
- oracle 01078解决办法,ORA-01078: failure in processing system parameters 问题的解决方法(oracle 11g)...
时间静默
oracle01078解决办法
ORA-01078:failureinprocessingsystemparametersLRM-00109:couldnotopenparameterfile‘/u01/app/oracle/product/11.2.0/db_1/dbs/initDATATEST.ora’[oracle@datatest~]$sqlplus“/assysdba”SQL*Plus:Release11.2.0.3.
- oracle 01078,解决oracle 11g 问题之ORA-01078: failure in processing system parameters
i福
oracle01078
2012-03-1615:4910181人阅读评论(0)收藏举报分类:Oracle(28)转载:昨天刚刚将oracle11G安装完成,今天想通过sqlplus来连接数据库,在启动oracle时,突然报错:ORA-01078:failureinprocessingsystemparametersLRM-00109:couldnotopenparameterfile'/u01/app/oracle/p
- 浙大数据结构:01-复杂度2 Maximum Subsequence Sum
_Power_Y
数据结构浙大数据结构c++
数据结构MOOCPTA习题01-复杂度2MaximumSubsequenceSum#includeusingnamespacestd;constintM=100005;inta[M];intmain(){intk;cin>>k;intf=1;for(inti=0;i>a[i];if(a[i]>=0)//如果出现大于0则进行在线处理f=0;}if(f){//全都小于0coutma){//更新答案ma
- 浙大数据结构:01-复杂度1 最大子列和问题
_Power_Y
数据结构浙大数据结构c++
数据结构MOOCPTA习题01-复杂度1最大子列和问题使用在线处理,遍历数组,如果当前数组和小于0则抛弃,每次更新最大值。我们假设最终结果为数组中间的一段,那么左边剩余的部分和右边剩余的部分和一定小于0,对答案没有贡献。#includeusingnamespacestd;constintM=100005;inta[M];intmain(){intk;cin>>k;for(inti=0;i>a[i]
- Intel英特尔AX210无线网卡驱动在Ubuntu18.04-22.04安装
逞口舌之利
ubuntulinux嵌入式硬件
前提:安装Intel英特尔AX210无线网卡官方驱动没有效果官方驱动:https://www.intel.cn/content/www/cn/zh/support/articles/000005511/wireless.html驱动安装在该文件夹打开终端输入sudocp*/lib/firmware/完成重启可以就不用看下面的了。如果这个不行,按下面步骤安装,WiFi就会出现下载我的附件包sudoa
- oracle 只读权限用户,oracle库中只读用户需要的权限
温酒斩桦腾
oracle只读权限用户
业务中要求建立一个只读用户,此用户对其他用户的对象有只读权限,目的是满足开发人员的查询需要,又要防止其误操作。同时该用户具有selectanydictionary权限,所以一切系统视图如v$session、v$sql、v$process等也都可以查看,也就是说,包括DBA在内,如果只是查询库信息,均可用此用户登录。在11gr2中通过授予用户以下权限,达到了要求。--Createtheusercre
- CentOS7 yum无法下载Cannot find a valid baseurl for repo: centos-sclo-rh/x86_64问题解决
爱学习的小宇宙
centoslinux运维
先是检查连接是否开启,iso源是否正确挂载然后检查repo,没有bak备份的加一个文件夹cd/etc/yum.repos.d/mkdirbakbase.repo和CentOs-Base.repo备份一下,之后删除其他.repomvbase.repobakmvCentOs-Base.repobakrm-f*.repocpbak/*./然后挂载本地镜像,清除本地缓存mount/dev/sr0/mnt/
- Golang安装与环境配置
夏月歌者
Golang开发golang开发语言
文章目录1.安装环境说明2.下载Golang安装包3.修改配置3.1开启开启GO111MODULE3.2依赖包缓存的路径3.3修改GOPATH3.4设置镜像代理地址4.总结1.安装环境说明操作系统:Windows11Golang版本:1.23.02.下载Golang安装包我们可以到Golang官网下载对应操作系统的安装包https://go.dev/dl/这里我们下载Windows平台的安装包:g
- openshift node NotReady & kubelet http: TLS handshake error
ghostwritten
openshiftopenshiftkubelethttp
文章目录问题现象解决方法问题现象openshift集群node节点notready$ocgetnodeNAMESTATUSROLESAGEVERSIONmaster1.ocp4.demo.comReadycontrol-plane,master4d14hv1.29.7+6abe8a1master2.ocp4.demo.comReadycontrol-plane,master4d15hv1.29.7
- 数据库管理-第236期 数据库一体机的价值(20240829)
胖头鱼的鱼缸(尹海文)
数据库数据库
数据库管理236期2024-08-29数据库管理-第236期数据库一体机的价值(20240829)1误区2硬件3操作系统4数据库总结数据库管理-第236期数据库一体机的价值(20240829)作者:胖头鱼的鱼缸(尹海文)OracleACEPro:Database(Oracle与MySQL)PostgreSQLACEPartner10年数据库行业经验,现主要从事数据库服务工作拥有OCM11g/12c
- StringRedisTemplate 删除某key开头的
qq_27327261
bootstrap前端html
StringRedisTemplate删除某key开头的原创mob64ca12e732bb2024-03-1204:13:15©著作权文章标签数据Redis甘特图文章分类Redis数据库阅读数94我整理的一些关于【数据】的项目学习资料(附讲解~~)和大家一起分享、学习一下:https://d.51cto.com/eDOcp1用StringRedisTemplate删除某key开头的数据在使用Red
- Java设计模式七大原则-开闭原则
zoeil
Java设计模式
开闭原则基本介绍开闭原则(OpenClosedPrinciple)是编程中最基础、最重要的设计原则一个软件实体如类,模块和函数应该对扩展开放(对提供方),对修改关闭(对使用方)。用抽象构建框架,用实现扩展细节。当软件需要变化时,尽量通过扩展软件实体的行为来实现变化,而不是通过修改已有的代码来实现变化。编程中遵循其它原则,以及使用设计模式的目的就是遵循开闭原则。例子publicclassOcp{pu
- 设计模式-七大原则-开闭原则
一个路过的小孩
java#设计模式设计模式开闭原则
开闭原则OpenClosedPrinciple目录开闭原则基本介绍案例1运行结果分析demo输出结果基本介绍1.开闭原则OpenClosedPrinciple是编程中最基础、最重要的设计原则(ocp原则)2.一个软件的实体(eg:类),模块和函数应该对扩展开放(对提供方),对修改关闭(对使用方)用抽象构建框架,用实现扩展细节。3.当软件需求发生变化的时候,尽量通过扩展软件实体的行为实现变化,而不是
- java基础:面向对象六大设计原则——单一职责原则
少年锦时的博客
javajava
单一职责原则(SRP:Singleresponsibilityprinciple)又称单一功能原则,是面向对象六个基本原则(包括SRP:单一职责原则、OCP开放封闭原则、LSP里氏替换原则、DIP依赖倒置原则、ISP接口分离原则、迪米特法则)之一。它规定一个类应该只有一个发生变化的原因。问题由来之所以会出现单一职责原则就是因为在软件设计时会出现以下类似场景:T负责两个不同的职责:职责P1,职责P2
- Oracle 19c RAC SCAN详解 -DNS配置-多个scanip
垃圾宝宝
oracle数据库
SCAN概念SCAN(SingleClientAccessName)是Oracle从11gR2开始推出的,客户端可以通过SCAN特性负载均衡地连接到RAC数据库。SCAN提供一个域名来访问RAC,域名可以解析1个到3个(注意,最多3个)SCANIP,我们可以通过DNS或者GNS来解析实现。其中DNS大家都很熟悉,这里不多说。tips:19c安装grid时会根据/etc/nsswitch.conf中
- oracle数据库中标识列,Oracle数据库标识列
Setor
oracle数据库中标识列
Oracle数据块结构概述整理自Oracle11gR2官方文档《concepts》001概述Oracle数据库以数据块(也称为Oracle块或页)为单位,来管理数据库数据文件中的逻辑存储空间。数据块是数据库I/O的最小单位。002数据块和操作系统块在物理级别,...文章苍雪明南2016-01-18893浏览量db_name、db_domain、service_name、global_name、in
- iOS http封装
374016526
ios服务器交互http网络请求
程序开发避免不了与服务器的交互,这里打包了一个自己写的http交互库。希望可以帮到大家。
内置一个basehttp,当我们创建自己的service可以继承实现。
KuroAppBaseHttp *baseHttp = [[KuroAppBaseHttp alloc] init];
[baseHttp setDelegate:self];
[baseHttp
- lolcat :一个在 Linux 终端中输出彩虹特效的命令行工具
brotherlamp
linuxlinux教程linux视频linux自学linux资料
那些相信 Linux 命令行是单调无聊且没有任何乐趣的人们,你们错了,这里有一些有关 Linux 的文章,它们展示着 Linux 是如何的有趣和“淘气” 。
在本文中,我将讨论一个名为“lolcat”的小工具 – 它可以在终端中生成彩虹般的颜色。
何为 lolcat ?
Lolcat 是一个针对 Linux,BSD 和 OSX 平台的工具,它类似于 cat 命令,并为 cat
- MongoDB索引管理(1)——[九]
eksliang
mongodbMongoDB管理索引
转载请出自出处:http://eksliang.iteye.com/blog/2178427 一、概述
数据库的索引与书籍的索引类似,有了索引就不需要翻转整本书。数据库的索引跟这个原理一样,首先在索引中找,在索引中找到条目以后,就可以直接跳转到目标文档的位置,从而使查询速度提高几个数据量级。
不使用索引的查询称
- Informatica参数及变量
18289753290
Informatica参数变量
下面是本人通俗的理解,如有不对之处,希望指正 info参数的设置:在info中用到的参数都在server的专门的配置文件中(最好以parma)结尾 下面的GLOBAl就是全局的,$开头的是系统级变量,$$开头的变量是自定义变量。如果是在session中或者mapping中用到的变量就是局部变量,那就把global换成对应的session或者mapping名字。
[GLOBAL] $Par
- python 解析unicode字符串为utf8编码字符串
酷的飞上天空
unicode
php返回的json字符串如果包含中文,则会被转换成\uxx格式的unicode编码字符串返回。
在浏览器中能正常识别这种编码,但是后台程序却不能识别,直接输出显示的是\uxx的字符,并未进行转码。
转换方式如下
>>> import json
>>> q = '{"text":"\u4
- Hibernate的总结
永夜-极光
Hibernate
1.hibernate的作用,简化对数据库的编码,使开发人员不必再与复杂的sql语句打交道
做项目大部分都需要用JAVA来链接数据库,比如你要做一个会员注册的 页面,那么 获取到用户填写的 基本信后,你要把这些基本信息存入数据库对应的表中,不用hibernate还有mybatis之类的框架,都不用的话就得用JDBC,也就是JAVA自己的,用这个东西你要写很多的代码,比如保存注册信
- SyntaxError: Non-UTF-8 code starting with '\xc4'
随便小屋
python
刚开始看一下Python语言,传说听强大的,但我感觉还是没Java强吧!
写Hello World的时候就遇到一个问题,在Eclipse中写的,代码如下
'''
Created on 2014年10月27日
@author: Logic
'''
print("Hello World!");
运行结果
SyntaxError: Non-UTF-8
- 学会敬酒礼仪 不做酒席菜鸟
aijuans
菜鸟
俗话说,酒是越喝越厚,但在酒桌上也有很多学问讲究,以下总结了一些酒桌上的你不得不注意的小细节。
细节一:领导相互喝完才轮到自己敬酒。敬酒一定要站起来,双手举杯。
细节二:可以多人敬一人,决不可一人敬多人,除非你是领导。
细节三:自己敬别人,如果不碰杯,自己喝多少可视乎情况而定,比如对方酒量,对方喝酒态度,切不可比对方喝得少,要知道是自己敬人。
细节四:自己敬别人,如果碰杯,一
- 《创新者的基因》读书笔记
aoyouzi
读书笔记《创新者的基因》
创新者的基因
创新者的“基因”,即最具创意的企业家具备的五种“发现技能”:联想,观察,实验,发问,建立人脉。
第一部分破坏性创新,从你开始
第一章破坏性创新者的基因
如何获得启示:
发现以下的因素起到了催化剂的作用:(1) -个挑战现状的问题;(2)对某项技术、某个公司或顾客的观察;(3) -次尝试新鲜事物的经验或实验;(4)与某人进行了一次交谈,为他点醒
- 表单验证技术
百合不是茶
JavaScriptDOM对象String对象事件
js最主要的功能就是验证表单,下面是我对表单验证的一些理解,贴出来与大家交流交流 ,数显我们要知道表单验证需要的技术点, String对象,事件,函数
一:String对象;通常是对字符串的操作;
1,String的属性;
字符串.length;表示该字符串的长度;
var str= "java"
- web.xml配置详解之context-param
bijian1013
javaservletweb.xmlcontext-param
一.格式定义:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>contextConfigLocationValue></param-value>
</context-param>
作用:该元
- Web系统常见编码漏洞(开发工程师知晓)
Bill_chen
sqlPHPWebfckeditor脚本
1.头号大敌:SQL Injection
原因:程序中对用户输入检查不严格,用户可以提交一段数据库查询代码,根据程序返回的结果,
获得某些他想得知的数据,这就是所谓的SQL Injection,即SQL注入。
本质:
对于输入检查不充分,导致SQL语句将用户提交的非法数据当作语句的一部分来执行。
示例:
String query = "SELECT id FROM users
- 【MongoDB学习笔记六】MongoDB修改器
bit1129
mongodb
本文首先介绍下MongoDB的基本的增删改查操作,然后,详细介绍MongoDB提供的修改器,以完成各种各样的文档更新操作 MongoDB的主要操作
show dbs 显示当前用户能看到哪些数据库
use foobar 将数据库切换到foobar
show collections 显示当前数据库有哪些集合
db.people.update,update不带参数,可
- 提高职业素养,做好人生规划
白糖_
人生
培训讲师是成都著名的企业培训讲师,他在讲课中提出的一些观点很新颖,在此我收录了一些分享一下。注:讲师的观点不代表本人的观点,这些东西大家自己揣摩。
1、什么是职业规划:职业规划并不完全代表你到什么阶段要当什么官要拿多少钱,这些都只是梦想。职业规划是清楚的认识自己现在缺什么,这个阶段该学习什么,下个阶段缺什么,又应该怎么去规划学习,这样才算是规划。
- 国外的网站你都到哪边看?
bozch
技术网站国外
学习软件开发技术,如果没有什么英文基础,最好还是看国内的一些技术网站,例如:开源OSchina,csdn,iteye,51cto等等。
个人感觉如果英语基础能力不错的话,可以浏览国外的网站来进行软件技术基础的学习,例如java开发中常用的到的网站有apache.org 里面有apache的很多Projects,springframework.org是spring相关的项目网站,还有几个感觉不错的
- 编程之美-光影切割问题
bylijinnan
编程之美
package a;
public class DisorderCount {
/**《编程之美》“光影切割问题”
* 主要是两个问题:
* 1.数学公式(设定没有三条以上的直线交于同一点):
* 两条直线最多一个交点,将平面分成了4个区域;
* 三条直线最多三个交点,将平面分成了7个区域;
* 可以推出:N条直线 M个交点,区域数为N+M+1。
- 关于Web跨站执行脚本概念
chenbowen00
Web安全跨站执行脚本
跨站脚本攻击(XSS)是web应用程序中最危险和最常见的安全漏洞之一。安全研究人员发现这个漏洞在最受欢迎的网站,包括谷歌、Facebook、亚马逊、PayPal,和许多其他网站。如果你看看bug赏金计划,大多数报告的问题属于 XSS。为了防止跨站脚本攻击,浏览器也有自己的过滤器,但安全研究人员总是想方设法绕过这些过滤器。这个漏洞是通常用于执行cookie窃取、恶意软件传播,会话劫持,恶意重定向。在
- [开源项目与投资]投资开源项目之前需要统计该项目已有的用户数
comsci
开源项目
现在国内和国外,特别是美国那边,突然出现很多开源项目,但是这些项目的用户有多少,有多少忠诚的粉丝,对于投资者来讲,完全是一个未知数,那么要投资开源项目,我们投资者必须准确无误的知道该项目的全部情况,包括项目发起人的情况,项目的维持时间..项目的技术水平,项目的参与者的势力,项目投入产出的效益.....
- oracle alert log file(告警日志文件)
daizj
oracle告警日志文件alert log file
The alert log is a chronological log of messages and errors, and includes the following items:
All internal errors (ORA-00600), block corruption errors (ORA-01578), and deadlock errors (ORA-00060)
- 关于 CAS SSO 文章声明
denger
SSO
由于几年前写了几篇 CAS 系列的文章,之后陆续有人参照文章去实现,可都遇到了各种问题,同时经常或多或少的收到不少人的求助。现在这时特此说明几点:
1. 那些文章发表于好几年前了,CAS 已经更新几个很多版本了,由于近年已经没有做该领域方面的事情,所有文章也没有持续更新。
2. 文章只是提供思路,尽管 CAS 版本已经发生变化,但原理和流程仍然一致。最重要的是明白原理,然后
- 初二上学期难记单词
dcj3sjt126com
englishword
lesson 课
traffic 交通
matter 要紧;事物
happy 快乐的,幸福的
second 第二的
idea 主意;想法;意见
mean 意味着
important 重要的,重大的
never 从来,决不
afraid 害怕 的
fifth 第五的
hometown 故乡,家乡
discuss 讨论;议论
east 东方的
agree 同意;赞成
bo
- uicollectionview 纯代码布局, 添加头部视图
dcj3sjt126com
Collection
#import <UIKit/UIKit.h>
@interface myHeadView : UICollectionReusableView
{
UILabel *TitleLable;
}
-(void)setTextTitle;
@end
#import "myHeadView.h"
@implementation m
- N 位随机数字串的 JAVA 生成实现
FX夜归人
javaMath随机数Random
/**
* 功能描述 随机数工具类<br />
* @author FengXueYeGuiRen
* 创建时间 2014-7-25<br />
*/
public class RandomUtil {
// 随机数生成器
private static java.util.Random random = new java.util.R
- Ehcache(09)——缓存Web页面
234390216
ehcache页面缓存
页面缓存
目录
1 SimplePageCachingFilter
1.1 calculateKey
1.2 可配置的初始化参数
1.2.1 cach
- spring中少用的注解@primary解析
jackyrong
primary
这次看下spring中少见的注解@primary注解,例子
@Component
public class MetalSinger implements Singer{
@Override
public String sing(String lyrics) {
return "I am singing with DIO voice
- Java几款性能分析工具的对比
lbwahoo
java
Java几款性能分析工具的对比
摘自:http://my.oschina.net/liux/blog/51800
在给客户的应用程序维护的过程中,我注意到在高负载下的一些性能问题。理论上,增加对应用程序的负载会使性能等比率的下降。然而,我认为性能下降的比率远远高于负载的增加。我也发现,性能可以通过改变应用程序的逻辑来提升,甚至达到极限。为了更详细的了解这一点,我们需要做一些性能
- JVM参数配置大全
nickys
jvm应用服务器
JVM参数配置大全
/usr/local/jdk/bin/java -Dresin.home=/usr/local/resin -server -Xms1800M -Xmx1800M -Xmn300M -Xss512K -XX:PermSize=300M -XX:MaxPermSize=300M -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=5 -
- 搭建 CentOS 6 服务器(14) - squid、Varnish
rensanning
varnish
(一)squid
安装
# yum install httpd-tools -y
# htpasswd -c -b /etc/squid/passwords squiduser 123456
# yum install squid -y
设置
# cp /etc/squid/squid.conf /etc/squid/squid.conf.bak
# vi /etc/
- Spring缓存注解@Cache使用
tom_seed
spring
参考资料
http://www.ibm.com/developerworks/cn/opensource/os-cn-spring-cache/
http://swiftlet.net/archives/774
缓存注解有以下三个:
@Cacheable @CacheEvict @CachePut
- dom4j解析XML时出现"java.lang.noclassdeffounderror: org/jaxen/jaxenexception"错误
xp9802
java.lang.NoClassDefFoundError: org/jaxen/JaxenExc
关键字: java.lang.noclassdeffounderror: org/jaxen/jaxenexception
使用dom4j解析XML时,要快速获取某个节点的数据,使用XPath是个不错的方法,dom4j的快速手册里也建议使用这种方式
执行时却抛出以下异常:
Exceptio