servlet中urlPattern配置 不使用注解的时候,也可以使用下图中xml的方式来配置servlet 使用idea模板来创建servlet 创建servlet时,也可以修改模板: file——》》settings——》》如下图