摘要: 1自定义监听器Listener 常用的监听器包含三种,分别是servletContextListener、httpSessionListener、ServletRequestListener servletContextListener 启动应用的时候就会调用 1.1ServletRequestLi 阅读全文
posted @ 2020-08-25 15:20 我是一只老白兔 阅读(613) 评论(0) 推荐(0) 编辑
摘要: 1servlet3.0实现自定义的servlet 结构: 2代码 package com.example.demo.servlet; import java.io.IOException; import javax.servlet.ServletException;import javax.serv 阅读全文
posted @ 2020-08-25 14:16 我是一只老白兔 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 解决办法: 1在pom.xml中将多余的jar干掉,我这里就是干掉之后就能启动 2如果你不想干掉多余的jar,找到启动类,在springbootApplication的注解中加入@SpringBootApplication(exclude= {DataSourceAutoConfiguration. 阅读全文
posted @ 2020-08-25 11:51 我是一只老白兔 阅读(1274) 评论(0) 推荐(0) 编辑