I know why.
That's to teacher's tips.
[Teacher's tips.][1]
I found that I misreconginze the name of other project and the url of request sent to Tomcat Server in other project.
At beginning, I think it is HealthHelperServer
.
After a while, I found that it is HealthyHelperServer
. And thus, url of request sent to Tomcat Server in other project should be
http://localhost:8080/HealthyHelperServer/dietDiary/query/byTime
instead of
http://localhost:8080/HealthHelperServer/dietDiary/query/byTime
After I change the url to
http://localhost:8080/HealthyHelperServer/dietDiary/query/byTime
and test it again.
I get the response 200. That means it is okay. [1]: https://i.sstatic.net/cWsf3tTg.png