File upload of spring MVC

Spring MVC provides direct support for file upload, which is implemented through plug and play MultipartResolver interface. Spring is implemented with its implementation class CommonsMultipartResolver. There is no MultipartResolver in the context of spring MVC, so by default, spring MVC cannot handle th ...

Posted by CONFUSIONUK on Wed, 16 Oct 2019 09:24:55 -0700

Scope of spring learning bean

scope It includes Singleton, Prototype, request, session, application and websocket. It mainly talks about the commonly used Singleton and Prototype. Singleton When a bean is defined as a singleton object, the IoC container creates only one instance of the bean object. The bean object is stored in the container's cache (map). Subsequent referen ...

Posted by dillonit on Tue, 15 Oct 2019 19:08:41 -0700

Lazy load of spring learning

Lazy Under normal circumstances, bean loading starts after the container is started, so if there is an error in the loading process, it can be found immediately. Due to some specific business requirements, some beans need to be created at the first request of the IoC container. These beans can be marked as delayed loading. XML In the XML config ...

Posted by Robert07 on Tue, 15 Oct 2019 12:53:13 -0700

Add LZO compression support for Hadoop

The compression mode with lzo enabled is very useful for small-scale clusters. The compression ratio can be reduced to about 1 / 3 of the original log size. At the same time, the speed of decompression is faster. install Prepare jar package 1) Download lzo's jar project firsthttps://github.com/twitter/hadoop-lzo/archive/master.zip 2) the na ...

Posted by fastfingertips on Tue, 15 Oct 2019 10:36:22 -0700

[step by step implementation of advertising system in Spring cloud] configuration project structure & Implementation of Eureka service

Parent project management First, before creating the delivery system, let's take a look at our engineering structure: Mscx ad sponsor is our advertising system. For the above structure, we need to create a parent project mscx ad first To write the pom of the parent project to manage our unified dependency information. <?xml version="1.0" en ...

Posted by r2ks on Tue, 15 Oct 2019 09:06:19 -0700

The naming of spring learning bean

bean name Each bean has one or more identifiers that must be unique in the container. XML If neither id nor name is specified, the IOC container will automatically generate a unique identifier, that is, the full class name. Unique identifier if only id or name is specified. If specified at the same time, id is an identifier and name is an alia ...

Posted by gabrielkolbe on Tue, 15 Oct 2019 07:23:17 -0700

Convert two-dimensional structure tables such as xls to tab-separated txt text (to return, tab)

Purpose: Converting two-dimensional structure tables such as xls to tab-separated txt text content Usually used for the transformation of txt database (emphasis: go cell, return line, tab) Advantage: independent of the operating environment. The local computer can open a single page html file. , ...

Posted by linkskywalker on Mon, 14 Oct 2019 08:11:23 -0700

Spring's Learning _ 2.IoC Control Inversion

1.Ioc (inversion of control) controls inversion (an idea). IoC is an idea. Before that, the creation of objects used in programs must be completed by programmers. IoC entrusts the creation, preservation and management of objects (life cycle) to Spring, so Spring is also equivalent to a container (object of objects stored), which is the process ...

Posted by hammerslane on Mon, 14 Oct 2019 07:33:59 -0700

Android Studio plug-in development MVP framework code generation plug-in

I. overview When using Android Studio, plug-ins are often used to improve development efficiency (laziness). Some of them are commonly used: GsonFormat, ButterKnife, etc. Because introducing the mvp architecture into the project and writing various classes is a very tedious and repetitive task, so I wrote this plug-in at that time. Now I just ...

Posted by hoolahoops on Mon, 14 Oct 2019 05:53:46 -0700

Maven: How to add resources and class files when using spring-boot-maven-plugin

When using spring-boot-maven-plugin to package JAR for current projects, it is often necessary to add some resources and class files under non-default paths to the JAR package. The following can be configured in pom.xml <build>     <plugins>         <plugin>             <group ...

Posted by dniezby on Sun, 13 Oct 2019 14:07:57 -0700