原因:在springboot2.0.0之后,这个server.context-path过期了,换成了server.servlet.context-path=/crud这个配置。如此即可访问项目名th:src下的路径也被加上了crud的前缀