Skip to content

Commit

Permalink
release v1.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhom1314 committed Mar 24, 2024
1 parent 729ed1c commit 7d4e5b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,22 @@

package org.dromara.dynamictp.example.controller;

import org.dromara.dynamictp.example.dubbo.DubboUserService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.dromara.dynamictp.example.dubbo.DubboUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
* @author fabian4
*/
@Slf4j
@RestController
@AllArgsConstructor
@SuppressWarnings("all")
public class TestController {

@Resource
private DubboUserService dubboUserService;
private final DubboUserService dubboUserService;

@GetMapping("/dtp-example-adapter/testDubbo")
public String testDubbo() throws InterruptedException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package org.dromara.dynamictp.test.core.thread;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.dromara.dynamictp.core.executor.priority.PriorityDtpExecutor;
import org.dromara.dynamictp.core.spring.EnableDynamicTp;
Expand All @@ -28,7 +29,6 @@
import org.springframework.context.annotation.PropertySource;
import org.springframework.test.context.junit.jupiter.SpringExtension;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
Expand All @@ -45,11 +45,11 @@
@EnableAutoConfiguration
@ExtendWith(SpringExtension.class)
@SpringBootTest(classes = PriorityDtpExecutorTest.class)
@AllArgsConstructor
@PropertySource(value = "classpath:/dynamic-tp-demo.yml", factory = YamlPropertySourceFactory.class)
public class PriorityDtpExecutorTest {

@Resource
private PriorityDtpExecutor priorityDtpExecutor;
private final PriorityDtpExecutor priorityDtpExecutor;

@Test
void execute() throws InterruptedException {
Expand Down

0 comments on commit 7d4e5b7

Please sign in to comment.