1. 本文简单介绍jetty以及提供一个简单的嵌入部署jetty的java application. jetty是一个portable,lightweight, robust, flexible, extensible and easy to integrate的servlet container. 它可以像tomcat一样部署为一个standalone web server,也可以嵌入到一个应用程序中去。它也支持SPDY, WebSocket, OSGi, JMX, JNDI, JAAS。目前 ...

    阅读全文
  2. 下面三个命令都可以查看linux操作系统的版本信息 cat /etc/os-release lsb_release -a hostnamectl cat /etc/os-release [test@test01 ~]$ cat /etc/os-release NAME="Oracle Linux Server" VERSION="7.4" ID="ol" VERSION_ID=" ...

    阅读全文
  3. 在使用maven管理webflux project时,spring-boot-starter-web和spring-boot-starter-webflux能否一起工作? <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-webflux</artifactId> ...

    阅读全文
  4. 本文是学习springmvc官方文档的学习摘要。 https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#mvc-servlet   知识点 1) DispatcherServlet DispatcherServlet WebApplicationInitializer AbstractAnnotationConfig ...

    阅读全文
  5. 启动Tomcat8.5.11时遇到下面的异常: org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19 at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131) at org.apache.tomcat.util.bcel. ...

    阅读全文
  6. 原文出处:https://flatworldbusiness.wordpress.com/flat-education/previously/web-1-0-vs-web-2-0-vs-web-3-0-a-bird-eye-on-the-definition/ Web 0.0 – Developping the internet Web 1.0 – The shopping carts & static web Experts call the ...

    阅读全文
  7. 优雅REST风格的资源URL不希望带 .html 或 .do 等后缀.由于早期的Spring MVC不能很好地处理静态资源,所以在web.xml中配置DispatcherServlet的请求映射,往往使用 *.do 、 *.xhtml等方式。这就决定了请求URL必须是一个带后缀的URL,而无法采用真正的REST风格的URL。 如果将DispatcherServlet请求映射配置为"/",则Spring MVC将捕获Web容器所有的请求,包括静态资源的请求,Sprin ...

    阅读全文
  8.   web.xml配置 <servlet> <servlet-name>springmvc</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> </servlet> <servlet-mapping> ...

    阅读全文
  9. spring mvc2019-05-10

    The DispatcherServlet Spring's web MVC framework is, like many other web MVC frameworks, request-driven, designed around a central servlet that dispatches requests to controllers and offers other functionality that facilitates ...

    阅读全文
  10. 参考文章: https://www.cnblogs.com/51kata/p/5152400.html http://www.cnblogs.com/fangjian0423/p/servletContainer-tomcat-urlPattern.html Servlet容器Tomcat中web.xml中url-pattern的配置详解[附带源码分析] https://blog.csdn.net/mengxiangxingdong/article/details/806 ...

    阅读全文
  11. SpringMVC中核心控制器DispatcherServlet接受请求后通过handlerMapping映射到一个HandlerExecutionChain 对象(包含一个 Handler 处理器对象、多个 HandlerInterceptor 拦截器)对象,通过这种策略模式,很容易添加新的映射策略。 处理器映射器有三种,三种可以共存,相互不影响,分别是BeanNameUrlHandlerMapping、SimpleUrlHandlerMapping和ControllerClassNam ...

    阅读全文
  12. 本文记录Spring学习过程中觉得不错的学习资料和经验分享文章。本文不断更新。。 学习前需要了解的Knowledge Path Servlet Java annotation -> Lombok Spring framework(Core) -> SpringMVC -> SpringBoot ->Maven -> MyBatis -> SpringCloud    学习资料: 源码 S ...

    阅读全文
  13. 本文为https://docs.spring.io/spring/docs/current/spring-framework-reference/core.htmlSpring学习过程中遇到的知识点 先记录后深入学习   Annotations 1. Java-based configuration  中提到了 @Configuration @Bean @Import @DependsOn   Resource Int ...

    阅读全文
  14. 学习内容源于 官方文档 https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#expressions   学习摘要: SpEL: Spring Express Language, a java expression language. Other known expression Language: OGNL, MVEL, JBoss EL ... ...

    阅读全文
  15. 本文是学习Spring Testing官方文档的知识点摘要。官方文档:https://docs.spring.io/spring/docs/current/spring-framework-reference/testing.html#testing 关键词:Mock Objects, TestContext Framework, Spring MVC Test, WebTestClient   1. Introduction to Spring Testing ...

    阅读全文
  16. 本文为学习官方文档的学习笔记,单纯知识点摘要。官方文档: https://docs.spring.io/spring/docs/current/spring-framework-reference/data-access.html#spring-data-tier 1) Transaction Management Advantages of the Spring Framework's Transaction Support Model Glob ...

    阅读全文
  17. 26010

    1. 这个Docker视频demo了一个Docker的应用场景: https://www.youtube.com/watch?v=YFl2mCHdv24 ...

    阅读全文
  18. 1. 这个Docker视频demo了一个Docker的应用场景: https://www.youtube.com/watch?v=YFl2mCHdv24 2. <<Kubernetes for Beginners - Docker Introduction>> 这个视频非错不错的解释了Docker解决的痛点以及其架构。 https://www.youtube.com/watch?v=rmf04ylI2K0 3. 《Introduction to Ku ...

    阅读全文
  19. 在学习spring框架生成pdf文档的示例时初识接触到了iText库,本文为学习iText简单提要. https://www.lowagie.com/iText/ 为项目出处,后来这个项目转化为商业版本,所以com.lowagie这个package再也不继续维护和开发了,转向了com.itext包,而对应的官方网站也改为了 https://itextpdf.com/en 。 如果继续学习和使用com.lowagie这个免费包,学习文档可以在此查到&nbs ...

    阅读全文
  20. 本文为spring cloud学习笔记,官方文档:https://cloud.spring.io/spring-cloud-static/Greenwich.SR1/ 官方文档内容比较多,大体分为下面几大部分: Cloud Native Applications Spring Cloud Context: Application Context Services Spring Cloud Commons: Common Abstractions ...

    阅读全文