- 博客(14)
- 资源 (1)
- 收藏
- 关注
原创 weblogic 访问返回401-Unauthorized
```0HTTP/1.1 401 UnauthorizedConnection: Keep-AliveDate: Mon, 11 Sep 2017 09:37:51 GMTContent-Length: 1468Content-Type: text/html; charset=UTF-8WWW-Authenticate: Basic realm="WebLogic Server"X-P
2017-09-15 13:38:09
2938
原创 错误总结-apache-CXF
客户端 Could not find wsdl:binding operation info for web method print. 客户端接口加@WebServiceorg.apache.cxf.interceptor.Fault: Unexpected wrapper element {http://CXF.myweb.com/}printResponse found. Expect
2017-08-08 11:59:37
1449
转载 log4j配置详解
Log4J的配置文件(Configuration File)就是用来设置记录器的级别、存放器和布局的,它可接key=value格式的设置或xml格式的设置信息。通过配置,可以创建出Log4J的运行环境。配置文件 Log4J配置文件的基本格式如下:配置根Loggerlog4j.rootLogger = [ level ] , appenderName1 , appenderName2
2017-05-11 17:19:25
495
原创 weblogic BEA-170011
myeclipse测试weblogic部署是报错<Warning> <Log Management> <BEA-170011> <The LogBroadcaster on this server failed to broadcast log messages to the admin server. The Admin server may not be running. Message bro
2017-05-08 16:30:35
5063
原创 weblogic Error BEA-000402
weblogic运行的时候警告问题<Warning> <Socket> <BEA-000402> <There are: 5 active sockets, but the maximum number of socket reader threads allowed by the configuration is: 4. You may want to alter your configurati
2017-05-08 11:44:12
2437
原创 hibernate
save update saveorupdate save 保存数据 update 更新数据,根据主键 saveorupdate 根据主键判断:如果存在则更新、不存在则删除;主键委托hibernate写入,必须手动写入。否则会报: Batch update returned unexpected row count from update [0]; actual row count: 0;
2017-04-13 22:06:15
235
原创 乱码
1、在Web.xml下加入以下代码就可以解决。<!-- 编码过滤 --> <filter> <filter-name>characterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
2017-03-31 00:02:40
224
原创 线程笔记-JUC包中的原子操作类(AtomicReference)
在java 1.5的java.util.concurrent.atomic包下提供了一些原子操作类,即对基本数据类型的 自增(加1操作),自减(减1操作)、以及加法操作(加一个数),减法操作(减一个数)进行了封装,保证这些操作是原子性操作。atomic是利用CAS来实现原子性操作的(Compare And Swap),CAS实际上是利用处理器提供的CMPXCHG指令实现的,而处理器执行CMPXCHG
2016-09-23 17:35:31
636
原创 线程笔记-volatile
缓存一致性协议:最出名的就是Intel 的MESI协议,MESI协议保证了每个缓存中使用的共享变量的副本是一致的。它核心的思想是:当CPU写数据时,如果发现操作的变量是共享变量,即在其他CPU中也存在该变量的副本,会发出信号通知其他CPU将该变量的缓存行置为无效状态,因此当其他CPU需要读取这个变量时,发现自己缓存中缓存该变量的缓存行是无效的,那么它就会从内存重新读取。volatile:当一个共享变
2016-09-23 17:33:35
316
原创 线程笔记-杂记
用户线程: 守护线程:当用户线程结束时,自动退出。 设置(必须在start之前): thread.setDaemon(true); thread.start();
2016-09-21 16:02:20
387
原创 spring + memcached
1、memcached安装 下载memcached安装包:http://pan.baidu.com/s/1c23Hlc8 解压 以管理员身份运行CMD 找到解压位置: memcached -d install 2、包引入 maven配置 com.googlecode.xmemcached xmemcached
2016-08-25 10:12:30
402
原创 spring mvc + cache 注解格式
1、springMVC.xmlhttp://www.springframework.org/schema/beans" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.
2016-08-19 13:21:09
884
原创 Mybatis 利用log4j打印输出log
默认的使用mybaties是不打印mybaties相关的log的,因为内部的sql执行都是内部调用,在server的控制台是不 会打印log的。在log4j的配置文件log4j.properties里加上以下几句话就可以了:log4j.rootLogger=info, ServerDailyRollingFile, stdout log4j.appender.S
2016-08-16 10:34:53
5328
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人