V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  shayang888  ›  全部回复第 25 页 / 共 36 页
回复总数  712
1 ... 21  22  23  24  25  26  27  28  29  30 ... 36  
@chendy
2019-11-19 17:02:31.814 DEBUG 53080 --- [ctor-http-nio-3] o.s.w.s.adapter.HttpWebHandlerAdapter : [17aa98db] HTTP GET "/test"
2019-11-19 17:02:31.839 DEBUG 53080 --- [ctor-http-nio-3] s.w.r.r.m.a.RequestMappingHandlerMapping : [17aa98db] Mapped to com.example.demo.DemoApplication#test()
2019-11-19 17:02:31.856 DEBUG 53080 --- [ctor-http-nio-3] o.s.w.r.r.m.a.ResponseBodyResultHandler : Using 'text/plain;charset=UTF-8' given [*/*] and supported [text/plain;charset=UTF-8, text/event-stream, text/plain;charset=UTF-8, */*]
2019-11-19 17:02:31.857 DEBUG 53080 --- [ctor-http-nio-3] o.s.w.r.r.m.a.ResponseBodyResultHandler : [17aa98db] 0..1 [java.lang.String]
2019-11-19 17:02:31.860 DEBUG 53080 --- [ctor-http-nio-3] o.s.core.codec.CharSequenceEncoder : [17aa98db] Writing "test"
2019-11-19 17:02:31.877 DEBUG 53080 --- [ctor-http-nio-3] o.s.w.s.adapter.HttpWebHandlerAdapter : [17aa98db] Completed 200 OK
--------------------------------------------------------------
2019-11-19 17:02:33.311 DEBUG 53080 --- [ctor-http-nio-3] o.s.w.s.adapter.HttpWebHandlerAdapter : [17aa98db] HTTP GET "/test"
2019-11-19 17:02:33.312 DEBUG 53080 --- [ctor-http-nio-3] s.w.r.r.m.a.RequestMappingHandlerMapping : [17aa98db] Mapped to com.example.demo.DemoApplication#test()
2019-11-19 17:02:33.312 DEBUG 53080 --- [ctor-http-nio-3] o.s.w.r.r.m.a.ResponseBodyResultHandler : Using 'text/plain;charset=UTF-8' given [*/*] and supported [text/plain;charset=UTF-8, text/event-stream, text/plain;charset=UTF-8, */*]
2019-11-19 17:02:33.312 DEBUG 53080 --- [ctor-http-nio-3] o.s.w.r.r.m.a.ResponseBodyResultHandler : [17aa98db] 0..1 [java.lang.String]
2019-11-19 17:02:33.312 DEBUG 53080 --- [ctor-http-nio-3] o.s.core.codec.CharSequenceEncoder : [17aa98db] Writing "test"
2019-11-19 17:02:33.315 DEBUG 53080 --- [ctor-http-nio-3] o.s.w.s.adapter.HttpWebHandlerAdapter : [17aa98db] Completed 200 OK

2 次的时间明显不一样,第一次花了 60 多 ms,第二次直接 3ms 就完成了
@geying 怎么说?
@arraysnow
@chendy

@SpringBootApplication
@RestController
public class DemoApplication {

public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}

@GetMapping(path = "/test")
public String test() {
return "test";
}
}
就这一个随便的接口,也是第一次请求的时间长,后面就秒返回
@arraysnow
@chendy
我刚才试了下,即使不去和数据库交互,随便写个接口,也是第一次请求的时间长,后续短
@w292614191
@gejun123456
我更换成了 druid 的连接源,还是一样的,第一次请求慢
2019-11-19 15:22:44 +08:00
回复了 DRAYMONDHU 创建的主题 职场话题 看到对抽烟问题的激烈讨论,我自闭了
为什么我从来见不到像楼主这样的素质烟民?
amqpTemplate.convertAndSend(type, new PushProduceFactory())

void convertAndSend(String var1, Object var2) throws AmqpException;
public void convertAndSend(String routingKey, Object object) throws AmqpException {
this.convertAndSend(this.exchange, routingKey, object, (CorrelationData)null);
}
对象吧,object
@arraysnow 所以第二个没得解吗?
@ifreeky 是的,所以可不可以在 springboot 启动的同时就获取数据库连接呢?
@zoobop 哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈
@DavidWei 这有什么问题吗?
有大佬帮忙看看吗 谢谢了 实在不知道哪有问题
2019-11-15 18:30:14 +08:00
回复了 maiganne 创建的主题 职场话题 进不了入互联网大厂,如何破这个局?
@Archangell 我跟你一样 专科 学历 也准备转行 现在一边拿本科一边复习考研
然后就是如果我把```Algorithm.HMAC512()```这里传入的 secret 改成固定的,那么以上的问题不会出现
2019-11-06 14:39:52 +08:00
回复了 jiduxiyanghong 创建的主题 杭州 孩子居住证办理遇到困难了
有了娃还能租房??
2019-11-05 16:50:04 +08:00
回复了 Bigger8 创建的主题 程序员 从事程序员最好研究生吗
@skyming1126 4 年了
2019-11-05 10:33:28 +08:00
回复了 Bigger8 创建的主题 程序员 从事程序员最好研究生吗
读个研并不一定能给你的人生改变什么 但至少可以提高你的视野 让你见识更多更好的人和事 读书投资永远不亏的————准备 21 年一战的社畜狗留
2019-11-04 16:26:51 +08:00
回复了 shayang888 创建的主题 程序员 好消息,成都这边电信 ipv6 好像已经支持了
@WoodyBuendia 我已经没去用了 当时就只是拿来看了下各大高校的 cctv 直播
2019-11-04 16:25:48 +08:00
回复了 qinglizi4869 创建的主题 职场话题 第一次找工作失败的我发帖吐槽自己
emmm 你这没有双证跟我一样 不过我早你几年毕业 加油 多面多投 我当初天天面试、投简历,把成都的 70%都面了、投了个遍才找到现在最合适的一家。现在准备复习考研了 你也总能找到的,相信自己,另外别因为急就随便去个公司,不然呆不了多久发现有问题再离开又会很麻烦,要想清楚了再入职
1 ... 21  22  23  24  25  26  27  28  29  30 ... 36  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2982 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms · UTC 12:44 · PVG 20:44 · LAX 05:44 · JFK 08:44
Developed with CodeLauncher
♥ Do have faith in what you're doing.