摘要: 1 2 org.springframework.boot 3 spring-boot-starter-web 4 5 6 7 org.springframework.boot 8 ... 阅读全文
posted @ 2019-01-29 20:55 SpringCore 阅读(536) 评论(0) 推荐(0) 编辑
摘要: SpringBoot默认是以jar包的方式启动嵌入式的Servlet容易来启动SpringBoot的Web应用,没有web.xml文件 因此我们可以使用以下方式来注册Servlet、Filter、Listener。 (1)、注册Servlet (2)、注册Filter (3)、注册Listener 阅读全文
posted @ 2019-01-29 20:37 SpringCore 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 第一种方式在配置文件中进行修改 第二种方式在配置类中进行修改 阅读全文
posted @ 2019-01-29 19:34 SpringCore 阅读(3204) 评论(0) 推荐(2) 编辑