![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
工作
等哈哆
这个作者很懒,什么都没留下…
展开
-
spring与hibernate,session事务学习
看了很多篇别人讲的大概理解了(个人理解,只谈大概):首先整体的事务是由spring管理的,它主要是通过封装管理hibernate的session。但是对事务的操作应该是老大spring叫hibernate干的,最后应该都会走到jdbc。session:知道了hibernate中有4种状态,那都是对应一个session时,一般操作都不是自己获取session,所以一般不会遇到跟想的不一样的。(如:https://blog.csdn.net/Dug_Zhang/article/details/1031001原创 2021-10-21 17:54:33 · 196 阅读 · 0 评论 -
spring事务理解
简介问题:因为复习一下spring事务,所以想到了这些:spring事务传播行为有那些,怎么使用好什么时候会失效为什么会失效事务是什么时候创建的学习内容:spring事务的传播行为网上有很多:https://blog.csdn.net/pml18710973036/article/details/58607148总结:@Transactional默认是REQUIRED,只要加到最外层,基本能解决事务问题,但是加到最外层后,你如果里面的业务什么的,查询什么的,对数据库操作过多,会产生原创 2021-10-20 14:11:03 · 83 阅读 · 0 评论 -
servicemix中使用karaf安装jdbc异常
karaf@root>feature:install jdbcError executing command: Can't install feature jdbc/0.0.0:Error accessing mvn:org.apache.karaf.jdbc/org.apache.karaf.jdbc.command/3.0.51.根据网上参考,认为是maven问题详情查看:http://karaf.apache.org/manual/latest/里面的Maven configurat原创 2021-10-18 14:59:42 · 185 阅读 · 0 评论 -
servicemi启动activemq报错
环境:jdk8,servicemix6.1.01.ERROR: Compilation errororg.eclipse.jdt.internal.compiler.classfmt.ClassFormatException因为看官网所需环境是jdk7:http://servicemix.apache.org/docs/6.x/quickstart/quickstart.pdf所以这是编译错误,(好像只是web不能用功能能用)其他方法也试过了,比如自己安装的activemq:5.12.1对应这个原创 2021-10-14 14:19:48 · 123 阅读 · 0 评论 -
osgi官网demo,idea整合osgi
github下载demo官网教程:https://enroute.osgi.org/tutorial/020-tutorial_qs.html创建自己的demoosgi Quick Start参考文章:https://www.cnblogs.com/skyxia/p/10264296.html这个在:osgi.enroute\examples\quickstart\rest\src\main\java\org\osgi\enroute\examples\quickstart\rest里面在第一原创 2021-10-12 15:57:18 · 662 阅读 · 0 评论 -
导出的BigDecimal转换为百分数
参考文章:https://www.cnblogs.com/Small-sunshine/p/11648652.htmlhttps://www.cnblogs.com/liaowenhui/p/12303402.html//转换为百分数@Excel(name = "test",numFormat= "#.##%")//转换时间格式@Excel(name = "时间",exportFormat="yyyy-MM-dd HH:mm:dd")//转换为数字@Excel(name = "峰值流量",原创 2021-02-02 16:49:50 · 1120 阅读 · 0 评论 -
TreeSet排序JSONObject
TreeSet构造方法/** * Constructs a new, empty tree set, sorted according to the specified * comparator. All elements inserted into the set must be <i>mutually * comparable</i> by the specified comparator: {@code comparator.compare(e转载 2021-02-02 16:45:02 · 191 阅读 · 0 评论 -
easypoi使用检验导入excel数据
1.首先看见ExcelImportResult类发现//这个方法返回了上述实体public static <T> ExcelImportResult<T> importExcelMore(File file, Class<?> pojoClass, ImportParams params) { FileInputStream in原创 2021-01-27 14:45:57 · 2978 阅读 · 3 评论 -
original_currency在mysql字段中无法使用
建立了个表里面有这个字段,却怎么都插入值不进去,最后修改名字就可以。原创 2021-01-08 14:32:14 · 111 阅读 · 1 评论 -
vue编写企业微信跳转默认浏览器记录
企业微信跳转默认浏览器使用工具及开发背景前端后端使用工具及开发背景#开发者工具:https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1455784140前端后端原创 2020-12-01 10:31:49 · 1008 阅读 · 0 评论