上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 32 下一页
controller: @RequestMapping(value = "/pass/pointInfo.do", method = RequestMethod.GET) public String pointInfo(HttpServletRequest request) { return "po Read More
posted @ 2020-02-11 14:13 护花使者 Views(618) Comments(0) Diggs(0) Edit
linux上传自己编写的HttpTest.jar,这是一个测试jar包,主要每隔5秒打印一个时间。写到文件中。直接java -jar执行。 一、直接启动。 [root@localhost ~]# java -jar HttpTest.jar 按ctrl+c结束。 可以看到一直没变化。程序直接终止。 Read More
posted @ 2020-02-05 11:29 护花使者 Views(796) Comments(0) Diggs(0) Edit
import java.io.FileOutputStream; import java.io.PrintStream; import java.util.Date; public class SystemOutTest { public static void main(String[] args Read More
posted @ 2020-02-05 10:26 护花使者 Views(1523) Comments(0) Diggs(0) Edit
这个需要使用到history命令。可以加数字,返回最近执行的几条命令。如果不加数字会返回所有的历史命令。 [root@localhost ~]# history 20 1015 rm stdin.log 1016 ll 1017 rm yy 1018 ll 1019 echo 'hello' 1>> Read More
posted @ 2020-02-02 18:08 护花使者 Views(1161) Comments(0) Diggs(0) Edit
'>' 输出到文件中。文件不存在会创建。文件已存在,内容会被覆盖。文件时间会更新。 第一次输入'> test', 第二次输入'> test again', 发现内容 [root@localhost ~]# echo '> test' > echo.log [root@localhost ~]# ll Read More
posted @ 2020-02-01 18:15 护花使者 Views(2486) Comments(0) Diggs(1) Edit
引入java包: 本项目中仅引入了四个java包:amqp-client-5.7.3.jar,spring-rabbit-2.2.2.RELEASE.jar,spring-retry-1.2.4.RELEASE.jar,spring-amqp-2.2.2.RELEASE.jar spring-rab Read More
posted @ 2020-01-21 11:46 护花使者 Views(415) Comments(0) Diggs(0) Edit
安装Erlang 这个是rabbitmq安装的依赖条件。 rabbitmq的下载地址: https://www.rabbitmq.com/install-windows.html 选择下载的rabbitmq版本是3.8.3, 以下有说明Erlang和mq版本之间的关系, https://www.ra Read More
posted @ 2020-01-20 16:27 护花使者 Views(151) Comments(0) Diggs(0) Edit
这个region, accessKeyId,accessKeySecret,bucket是成员变量,建议写在配置文件中,注解注入。 @RequestMapping(value = "/pass/ossUploadTest.do", method = RequestMethod.POST) publi Read More
posted @ 2020-01-19 10:51 护花使者 Views(865) Comments(0) Diggs(0) Edit
java中,自定义排序需要使用到Collections.sort, Collections.sort(list, new java.util.Comparator<Map<String, Object>>() { @Override public int compare(Map<String, Ob Read More
posted @ 2020-01-12 18:11 护花使者 Views(220) Comments(0) Diggs(0) Edit
RestTemplate是spring封装的,使用起来更加简单。 接收: @RequestMapping(value = "/restTemplateTest.do", method = RequestMethod.POST) public @ResponseBody Map<String, Obj Read More
posted @ 2020-01-11 12:20 护花使者 Views(5724) Comments(0) Diggs(0) Edit
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 32 下一页