提交 6694ed95 编写于 作者: yizhishang123456's avatar yizhishang123456

整理版本,添加注释说明

上级 fbe77498
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>tx-lcn</artifactId>
<groupId>com.codingapi</groupId>
<version>4.2.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>extensions</artifactId>
<name>extensions</name>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-openfeign-core</artifactId>
<version>2.0.2.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${org.springframework-version}</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.0.0</version>
</plugin>
<!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20.1</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
......@@ -15,7 +15,7 @@ import javax.sql.DataSource;
@Configuration
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@EnableFeignClients(basePackages = {"com.codingapi.tx"})
public class MybatisDemo1Application {
public static void main(String[] args) {
......
......@@ -19,12 +19,6 @@
<dependencies>
<dependency>
<groupId>com.codingapi</groupId>
<artifactId>extensions</artifactId>
<version>4.2.0</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
......
package com.example.demo;
package com.codingapi.tx;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
......
......@@ -19,7 +19,7 @@ public class TxTransactionLocal {
private Logger logger = LoggerFactory.getLogger(TxTransactionLocal.class);
private final static ThreadLocal<TxTransactionLocal> currentLocal = new InheritableThreadLocal<TxTransactionLocal>();
private final static ThreadLocal<TxTransactionLocal> currentLocal = new InheritableThreadLocal<>();
private String groupId;
......
package com.codingapi.tx.config.service;
/**
* create by lorne on 2017/11/18
*/
public interface TxManagerTxUrlService {
String getTxUrl();
}
package com.codingapi.tx.netty.service.impl;
import com.example.demo.MQTxManagerFegin;
import com.codingapi.tx.MQTxManagerFegin;
import com.codingapi.tx.netty.service.MQTxManagerFeginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册