Fixed computer's IP address (required for front-end and back-end separation interface test)

1 Introduction

Since it is a separated project, the interface test is not as simple as the previous project is done by yourself. After all, they are written by themselves. Even if an error occurs, it is relatively simple to check by yourself, but the front and back ends are separated. Under the circumstances, the back-end developers only
Insert picture description here
pay attention to the back-end logic, and the front-end development only pays attention to the front-end logic. The working state of the two is two parallel lines, and there is basically no intersection. Only when our data needs to interact, our Work will produce intersection. At
Insert picture description here
this time, it will expose some shortcomings of the separation of front and rear development models. I said in detail in this blog: front-end interface testing artifact Swagger basically uses
other related content about front-end interface testing. My following blog has corresponding targeted explanations:
SSM integrates Swagger
swagger cross-domain, 404, pop-up problem solving
RestfulToolk-IDEA online interface test plug-in artifact
SpringBoot uses RestTemplate to access third-party interfaces
. After knowing the above content, we In fact, there is another problem接口地址时常是变化的

Our general local testing time basically localhost, so when we are not aware of, but the final end of the previous project, visit our front-end interface, usually need to access our computer ip address, then we will find that the actual operation , IP address of the computer that will change each time the computer shutdown or restart the ip address will change after. so would not need to ask each front-end back-end developers ip address is how much time the two are okay , It is more troublesome to ask it every day, so we better fix our IP address, so that we can better facilitate our testing.

2. Steps

2.1 Open the control panel and find the wireless network

Insert picture description here

2.2 Click on wireless network to view detailed information

Insert picture description here
Record the information circled below
Insert picture description here

2.3 Click on the wireless network to fix the IP address

Select the network protocol, then click on the attribute
Insert picture description here
ip address to fill in the IP address you want to fix, and the rest will fill in the information on our previous picture

Insert picture description here
After this, the ip address of our computer under the wireless network has been fixed. It is recommended to fix an ip address. Under what network segment do you test the interface, fix the ip address under this network segment.如果固定多个ip地址,会导致你的电脑无法上网

Guess you like

Origin blog.csdn.net/lovely__RR/article/details/109176308