自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

穿过午夜

极客之路,艰辛而又漫长。

  • 博客(11)
  • 收藏
  • 关注

原创 解决Transaction is already completed - do not call commit or rollback more than once per transaction问题

问题        在看《Spring揭秘》事务章节内容,调试代码过程中,出现以下异常:19/01/29 14:41:31 [main]: DEBUG datasource.DataSourceTransactionManager: Creating new transaction with name [ChansonTransaction]: PROPAGATION_REQUIRES_...

2019-01-29 14:55:04 19312

原创 挑战ARTS第一周

AlgorithmTwo Sum        万丈高楼平地起,我从leetcode的第一题开始算法之旅。ReviewTransactions, Caching and AOP: understanding proxy usage in Spring        本文通过事务和缓存两个知识点,了解Spring中的代理使用情况。        在Spring框架中,代理是底...

2019-01-27 17:14:50 194

原创 Algorithm:Two Sum 之Java实现(含最优解)

题目leetcode-1难度:简单Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and yo...

2019-01-27 14:59:59 2743

原创 挑战ARTS

为了持续提升自身的技术水平,我决定从这周起,挑战ARTS。背景ARTS的初衷作者:陈皓链接:https://www.zhihu.com/question/301150832/answer/529809529Algorithm。主要是为了编程训练和学习。每周至少做一个 leetcode 的算法题(先从Easy开始,然后再Medium,最后才Hard)。进行编程训练,如果不训练你看再...

2019-01-24 20:32:28 591

原创 解决Caused by: java.lang.ClassNotFoundException: javax.persistence.Entity问题

问题Spring3.0.0.RELEASE搭配Hibernate3.3.2.GA,构建事务案例,启动报错。日志异常如下:Caused by: java.lang.ClassNotFoundException: javax.persistence.EntityCaused by: java.lang.NoClassDefFoundError: javax/persistence/En...

2019-01-23 17:14:38 7804

原创 解决java.lang.ClassNotFoundException: org.hibernate.annotations.Entity问题

问题Spring3.0.0.RELEASE搭配Hibernate3.3.2.GA,构建事务案例,启动报错。日志异常如下:Caused by: java.lang.NoClassDefFoundError: org/hibernate/annotations/Entity at org.springframework.orm.hibernate3.annotation.Annotat...

2019-01-23 16:47:47 4197

原创 解决A component required a bean named 'entityManagerFactory' that could not be found.问题

问题在调试SpringBoot集成多数据源的工程过程中,启动异常。错误如下:***************************APPLICATION FAILED TO START***************************Description:A component required a bean named 'entityManagerFactory' t...

2019-01-17 11:45:53 39483 4

原创 解决IllegalArgumentException: At least one JPA metamodel must be present!问题

问题SpringBoot2.0工程,启动报错,异常:nested exception is java.lang.IllegalArgumentException: At least one JPA metamodel must be present!。详情如下:org.springframework.beans.factory.BeanCreationException: Error...

2019-01-15 17:16:24 10171

原创 解决The import org.springframework.boot.jdbc.DataSourceBuilder cannot be resolved的问题。

问题    在研究SpringBoot事务,跑一个网上的例子时,报错:The import org.springframework.boot.jdbc.DataSourceBuilder cannot be resolved。 分析由于已经导入SpringBoot相关包,所以,初步怀疑是SpringBoot的版本问题导致。当前pom.xml文件<pare...

2019-01-14 11:36:45 11129 5

原创 解决Maven仓库中异常jar包导致的invalid LOC header (bad signature)问题。

问题最近,在研究mycat。把mycat-server源代码工程导入eclipse后,发现编译报错:报无法识别DateTime类型:DateTime cannot be resolved to a type分析经分析,该类对应的jar包已经存在(pom中已经定义对应的依赖)通过Open Type确定找不到DateTime类。后来,通过Project Explor...

2019-01-11 00:02:01 1718

原创 解决The import org.mybatis cannot be resolved问题。

问题最近在研究SpringBoot集成JTA,参照网上一个例子并在工程中实践时,编译报错:The import org.mybatis cannot be resolved分析经过分析发现,pom中已经定义了mybatis相关jar包。但在mybatis的源码中发现,并不存在“org.mybatis.spring.*”这样的package。于是,去Maven...

2019-01-10 11:19:27 17216 5

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除