随笔分类 -  Java

IntelliJ 中使用Tomcat警告 Messages_zh.properties] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
摘要:找到使用的Tomcat的目录中在/conf/context.xml中添加 阅读全文

posted @ 2016-12-06 17:34 whilliy 阅读(280) 评论(0) 推荐(0)

@Configuration
摘要:@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Component public @interface Configuration Indicates that a class declares one or more @Bean 阅读全文

posted @ 2016-08-06 16:08 whilliy 阅读(227) 评论(0) 推荐(0)

URI、URL 和 URN
摘要:URI 是统一资源 标识符,而 URL 是统一资源 定位符。因此,笼统地说,每个 URL 都是 URI,但不一定每个 URI 都是 URL。这是因为 URI 还包括一个子类,即统一资源 名称 (URN),它命名资源但不指定如何定位资源。上面的 mailto、 news 和 isbn URI 都是 U 阅读全文

posted @ 2016-07-24 23:19 whilliy 阅读(180) 评论(0) 推荐(0)

第十二章 映射请求到Servlet(JavaTM Servlet 规范3.1 )
摘要:Mapping Requests to Servlets 映射请求到 Servlet The mapping techniques described in this chapter are required for Web containers mapping client requests to 阅读全文

posted @ 2016-07-24 14:13 whilliy 阅读(250) 评论(0) 推荐(0)

第二章 Servlet 接口(JavaTM Servlet 规范3.1 )
摘要:Servlet 接口 Servlet 接口是 Java Servlet API 的核心抽象。所有 servlet 要么直接要么间接地实现该接口,通过扩展一个类实现此接口。在 Java Servlet API 中有两个类 GenericServlet 和 HttpServlet 实现了此 Servle 阅读全文

posted @ 2016-07-23 17:24 whilliy 阅读(417) 评论(0) 推荐(0)

第十章 Web Application(JavaTM Servlet 规范3.1 )
摘要:Web 应用 Web应用是Web服务器上组成一个完整应用的 servlets,HTML pages,classes 和其他资源的一个集合。Web应用可以被捆绑并运行在不同供应商的不同容器内。 10.1 Web服务器中的Web应用 Web服务器里的Web应用以一个特定的路径为根。例如,catalog应 阅读全文

posted @ 2016-07-21 20:32 whilliy 阅读(223) 评论(0) 推荐(0)

第六章 过滤(JavaTM Servlet 规范3.1 )
摘要:Filtering 过滤 过滤器是 Java 组件,它允许动态改变进入资源的请求和从资源返回的响应的有效载荷(payload)和头(header)信息。 Java Servlet API 类和方法提供轻量框架过滤动态和静态内容。它描述了在Web应用中过滤器如何被配置和它们实现的约定和语义。 线上提供 阅读全文

posted @ 2016-07-20 14:52 whilliy 阅读(212) 评论(0) 推荐(0)

第四章 Servlet上下文(JavaTM Servlet 规范3.1 )
摘要:Servlet Context (Servlet 上下文) 4.1 Introduction to the ServletContext Interfacen ServletContext接口介绍 ServletContext 接口定义了运行在Web应用中的 servlet 的视图。容器提供者有义务 阅读全文

posted @ 2016-07-19 16:11 whilliy 阅读(536) 评论(0) 推荐(0)

第三章 Request(JavaTM Servlet 规范3.1 )
摘要:The Request 请求 请求对象包装了所有来自客户端请求的信息。在HTTP协议中,这些信息在HTTP头和请求消息体中从客户端传输到服务器端。 3.1 HTTP Protocol Parameters HTTP 协议参数 Servlet 的请求参数都是字符串,它们作为请求的一部分从客户端被发送到 阅读全文

posted @ 2016-07-19 15:37 whilliy 阅读(357) 评论(0) 推荐(1)

第五章 Response(JavaTM Servlet 规范3.1 )
摘要:The Response 响应 响应对象包装了从服务器端返回到客户端的所有信息。在HTTP协议上,这些信息既可以通过HTTP headers 又可以通过响应体从服务器端传输到客户端。 5.1 缓冲 为了效率,servlet 容器允许但非必须缓冲到客户端的输出。典型地,服务器默认使用缓冲,但是允许 s 阅读全文

posted @ 2016-07-19 13:49 whilliy 阅读(423) 评论(0) 推荐(0)