- 博客(18)
- 资源 (7)
- 收藏
- 关注
原创 org.apache.thrift.TApplicationException: Invalid method name:XXX
问题是在client端报出来的。看了一下thrift生成的代码,远程调用是按照如下的流程进行的,发送请求,括号里面是参数然后接受响应,并返回,问题就是出在recv_xx里面,服务端返回的是个异常 send_xx(xx, xx, xx); return recv_xx(); 在ReceiveBase中,就直接抛出这个异常了服务端侧日志没有出现...
2019-11-26 10:32:36 2583 1
原创 maven 配置文件配置
<?xml version="1.0" encoding="UTF-8"?><!--Licensed to the Apache Software Foundation (ASF) under oneor more contributor license agreements. See the NOTICE filedistributed with this wor...
2019-11-24 19:48:54 298 1
原创 刷新页面后保存selectItem
<script type="text/javascript"> jQuery(document).ready(function() { var xx = jQuery('#xx'); if (localStorage.getItem('xx')) { ...
2019-11-16 15:09:04 235
原创 Oracle索引是区分大小写的
Oracle的索引的名字是区分大小写的select count(*) into index_count from user_indexes where lower(index_name) = 'xxx';因为使用了lower,那么xxx必须是小写。
2019-11-15 10:34:51 661
原创 Button按钮点击一次没反应,需要点击两次
在一个jsp页面中Button按钮点击一次没反应,需要点击两次。后来发现将<button>name</button>改成一行的形式<button ...>name</button>这个问题不知道是怎么回事,但是这么改的确就有用了。...
2019-11-14 16:54:10 1858
原创 Connection is not associated with a managed connection
Connection is not associated with a managed connection
2019-11-13 20:13:02 1383
原创 java.sql.SQLSyntaxErrorException: ORA-02289: sequence does not exist
JPA提供四种主键生成器策略GenerationType.IDENTITY多数数据库支持IDENTITY列,数据库会在新行插入时自动给ID赋值,这也叫做ID自增长列GenerationType.Auto把主键生成策略交给JPA厂商(Persistence Provider),由它根据具体的数据库选择合适的策略,可以是Table/Sequence/Identity中的一种。假如数据库是Ora...
2019-11-13 15:30:59 1091
原创 Hibernate中文手册
https://docs.jboss.org/hibernate/orm/3.5/reference/zh-CN/html/index.html
2019-11-12 17:16:23 409
原创 时间测试工具类
public class PerformanceMeasurementUtil { private static final Map<String, Long> accruedTimeMap = new ConcurrentHashMap<>(); private static final Map<String, Long> startTim...
2019-11-12 15:36:16 182
原创 docker容器修改时区
apk add tzdata ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime
2019-11-12 11:32:44 122
原创 Hibernate异常
aused by: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1这个是更新entity的时候,数据库中找不到对应的数据,无法更新了。原因:因为每次更新的时候,都是先从缓存里...
2019-11-07 20:19:03 153
原创 Python2和Python3的比较
Python2和Python3的比较所有纠结学习Python 2还是Python 3的朋友都知道,按照Python官方的计划,Python 2只支持到2020年。可能大家接触Python的时间还不长,不知道Python官方曾经还说过,Python 2只支持到2015年(https://github.com/python/peps/blob/master/pep-0373.txt)。所以,大家可...
2019-11-04 18:42:31 94
原创 Python虚拟环境 virtualenv
创建一个独立的Python运行环境,命名为venv安装:pip3 install virtualenv创建虚拟环境:virtualenv env(创建虚拟环境)virtualenv env(创建纯净环境)virtualenv --system-site-packages env_django(创建环境,继承原安装的模块)#指定inteceptor 这里指定是python3.6...
2019-11-04 15:44:49 165
原创 Hibernate设置事务
<!-- 事务隔离级别 hibernate.connection.isolation = 4 1-- Read uncommitted isolation 2-- Read committed isolation 4-- Repeatable read isolation 8-- Serializable isolation--><p...
2019-11-04 15:31:12 329
原创 git分支 MERGING状态
git reset --hard HEADgit log 命令可以显示所有提交过的版本信息如果感觉太繁琐,可以加上参数 --pretty=oneline,只会显示版本号和提交时的备注信息git log --pretty=onelinegit reflog可以查看所有分支的所有操作记录(包括已经被删除的 commit 记录和 reset 的操作)...
2019-11-03 19:12:08 3623
原创 Scala中apply方法与unapply方法
通常,在一个类的伴生对象中定义apply方法,在生成这个类的对象时,就省去了new关键字。class Currency(val value: Double, val unit: String) {}object Currency{ def apply(value: Double, unit: String): Currency = new Currency(value, uni...
2019-11-03 19:03:06 543
原创 Scala case class
Case Class一般被翻译成样例类,它是一种特殊的类,能够被优化以用于模式匹配,下面的代码定义了一个样例类://抽象类Personabstract class Person//case class Studentcase class Student(name:String,age:Int,studentNo:Int) extends Person//case class Tea...
2019-11-03 18:42:46 180
原创 数据库事务隔离级别
数据库事务的隔离级别有4个,由低到高依次为Read uncommitted、Read committed、Repeatable read、Serializable,这四个级别可以逐个解决脏读、不可重复读、幻读这几类问题。脏读,A事务读取B事务尚未提交的数据,此时如果B事务发生错误并执行回滚操作,那么A事务读取到的数据就是脏数据不可重复读,事务A在执行读取...
2019-11-03 18:31:19 78
enwiki-latest-abstract1.xml.gz
2020-08-25
二进制编辑器
2015-03-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人