Skip to content

Commit

Permalink
bugfix: fix the exception with SeataTCCFenceAutoConfiguration (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
pengten authored and liuqiufeng committed Jun 11, 2022
1 parent 001c40b commit 209deb2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 4 additions & 3 deletions changes/en-us/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@ Add changes here for all PR submitted to the develop branch.


### bugfix:
- [[#4661](https://github.com/seata/seata/pull/4661)] Fix sql exception with PostgreSQL in module console
- [[#4515](https://github.com/seata/seata/pull/4515)] fix the error of SeataTCCFenceAutoConfiguration when database unused
- [[#4661](https://github.com/seata/seata/pull/4661)] fix sql exception with PostgreSQL in module console

### optimize:
- [[#4650](https://github.com/seata/seata/pull/4650)] fix some security vulnerabilities
- [[#4650](https://github.com/seata/seata/pull/4650)] fix some security vulnerabilities

### test:

Thanks to these contributors for their code commits. Please report an unintended omission.

<!-- Please make sure your Github ID is in the list below -->
- [slievrly](https://github.com/slievrly)
- [pengten](https://github.com/pengten)
- [YSF-A](https://github.com/YSF-A)


Also, we receive many valuable issues, questions and advices from our community. Thanks for you all.
6 changes: 4 additions & 2 deletions changes/zh-cn/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
### feature:

### bugfix:
- [[#4661](https://github.com/seata/seata/pull/4661)] 修复控制台中使用PostgreSQL出现的SQL异常
- [[#4515](https://github.com/seata/seata/pull/4515)] 修复develop分支SeataTCCFenceAutoConfiguration在客户端未使用DB时,启动抛出ClassNotFoundException的问题。
- [[#4661](https://github.com/seata/seata/pull/4661)] 修复控制台中使用PostgreSQL出现的SQL异常

### optimize:
- [[#4650](https://github.com/seata/seata/pull/4650)] 修复安全漏洞
- [[#4650](https://github.com/seata/seata/pull/4650)] 修复安全漏洞

### test:

Expand All @@ -17,6 +18,7 @@

<!-- 请确保您的 GitHub ID 在以下列表中 -->
- [slievrly](https://github.com/slievrly)
- [pengten](https://github.com/pengten)
- [YSF-A](https://github.com/YSF-A)

同时,我们收到了社区反馈的很多有价值的issue和建议,非常感谢大家。
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
* @author kaka2code
*/
@ConditionalOnExpression("${seata.enabled:true}")
@ConditionalOnBean(type = {"javax.sql.DataSource", "org.springframework.transaction.PlatformTransactionManager"})
@ConditionalOnMissingBean(TCCFenceConfig.class)
@AutoConfigureAfter({SeataCoreAutoConfiguration.class, DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class})
public class SeataTCCFenceAutoConfiguration {

public static final String TCC_FENCE_DATA_SOURCE_BEAN_NAME = "seataTCCFenceDataSource";
public static final String TCC_FENCE_TRANSACTION_MANAGER_BEAN_NAME = "seataTCCFenceTransactionManager";

@Bean
@ConditionalOnMissingBean(TCCFenceConfig.class)
@ConditionalOnBean({DataSource.class, PlatformTransactionManager.class})
@ConfigurationProperties(StarterConstants.TCC_FENCE_PREFIX)
public TCCFenceConfig tccFenceConfig(
DataSource dataSource,
Expand Down

0 comments on commit 209deb2

Please sign in to comment.