博文

目前显示的是标签为“jar”的博文

JAR File Specification

From:http: // docs.oracle.com/javase/1.3/docs/guide/jar/jar. html JAR File Specification Contents Introduction The META-INF directory Name-Value pairs and Sections JAR Manifest Overview Manifest Specification Main Attributes Per-Entry Attributes Signed JAR file Overview Signature File Signature validation The Magic Attribute Digital Signatures Notes on Manifest and Signature Files JAR Index Overview Index File Specification Backward Compatibility Service Provider Overview Provider Configuration File Example API Details See Also Introduction JAR file is a file format based on the popular ZIP file format and is used for aggregating many files into one. A  JAR file is essentially a zip file that contains an optional META-INF directory. A JAR file can be created by the command-line jar tool, or by using the  java.util.jar API in the Java platform. There is no restriction on the name of a JAR file, ...

getAuthentication() when error-page 404 is shown in the Spring.

in web.xml.   < error-page >        < error-code > 404 </ error-code >       < location > /WEB-INF/pages/errors/error404.jsp </ location >      </ error-page >  In error404.jsp, don't get user message by using SecurityContextHolder.getContext().getAuthentication(). Solution: <filter>          <filter-name>springSecurityFilterChain</filter-name>          <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>      </filter>      <filter-mapping>          <filter-name>springSecurityFilterChain</filter-name>          <url-pattern>/*</url-pattern>          <...

jar/war/ear

jar:  Java   Archive   file ;  war: Web   Archive   file;  ear: Enterprise   Archive   file; Their file format are .zip or .jar that is an archive file format that supports loss-less data compression. JAR : Software developers generally use .jar files to distribute Java applications or libraries, in the form. of classes and associated metadata and resources (text, images, etc.) JAR files build on the ZIP file format. WAR : In computing, a WAR file (which stands for "web application archive" ) is a JAR file used to distribute a collection of JavaServer Pages, servlets, Java classes, XML files, tag libraries and static Web pages (HTML and related files) that together constitute a Web application. EAR : An Enterprise ARchive, or EAR, is a file format used by Java EE for packaging one or more modules into a single archive so that the deployment of the various modules onto an application server happens simu...