我试图从我不熟悉的系统(http thrift)模拟一个帖子请求.
但是我将使用像ab这样的工具执行压力测试,那么我如何将Wireshark包传输到ab或curl命令http请求?
我有一些方法的Java注释,我怎么知道每个注释方面的顺序?我如何指定它们的顺序.
@MyAnnotaion
@Cacheable
@HystrixCommand
public void MYMethod() {}
Run Code Online (Sandbox Code Playgroud)
Cacheable来自SpringCache,HystrixCommand来自第三方软件包,它们都是运行时注释,我需要Cacheable先运行HystrixCommand,但不能用它们标记@order.
那么,我怎么能:
1,学习注释执行的顺序?
2,指定订单?
我试图搜索问题,但如果重复,请告诉我.
我正在学习PHP的类和对象,但这些代码让我困惑:
<?php
class A
{
public function test()
{
//output will be A load(), why?
self::load();
//output will be B load(), why?
$this->load();
}
public function load()
{
echo "A load()";
}
}
class B extends A
{
public function test()
{
parent::test();
}
public function load()
{
echo "B load()";
}
}
$c = new B();
$c->test();
Run Code Online (Sandbox Code Playgroud)
在这些情况下,为什么self::load()而$this->load()得到不同的输出?
请详细说明.