package com.ruoyi.web.test; import com.ruoyi.web.task.PhoneTask; import org.junit.Test; import org.springframework.amqp.rabbit.core.RabbitTemplate; import org.springframework.beans.factory.annotation.Autowired; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; //@SpringBootTest //@RunWith(SpringRunner.class) public class MQTest { @Autowired private RabbitTemplate rabbitTemplate; @Test public void testSend() { String str = "absdf"; String c = Character.toUpperCase(str.charAt(0)) + str.substring(1); System.out.println(c); "您好,我是浙二医院张医生,您是${name}吗?还是家属?".replaceAll("$$*variable", "AA"); // Pattern pattern = Pattern.compile("^(?!.*(好|太好)).*$"); // Matcher matcher = pattern.matcher("睡眠不好"); // System.out.println(matcher.matches()); // 创建固定大小的线程池 // ExecutorService executorService = Executors.newFixedThreadPool(10); // // executorService.submit(new PhoneTask()); } }