Spring MVC - [file upload, download, and static resource processing]

Article directory File upload, download, and static resource processing Introducing related jar packages web.xml springmvc.xml user.jsp UserController Static resource processing Configure the default servlet in web.xml Set by label in configuration file File upload, download, and static resource processing Introduc ...

Posted on Sun, 24 Nov 2019 12:40:59 -0500 by skovela

Tomcat virtual host and optimization

Tomcat virtual host configuration ■ when a company has multiple projects running at the same time, it is not recommended to run multiple Tomcat services on one server, so virtual host needs to be configured■ access to different project content through two domain namesStep by step1. Create www and bbs project directories and files2. Modify the ...

Posted on Sun, 24 Nov 2019 11:58:08 -0500 by BIGjuevos

Complete the configuration of SSM layer by layer

Create a new xml file in src/main/resources/spring as follows: Content of spring-dao.xml: <?xml version="1.0" encoding="UTF-8"?> <context:property-placeholder location="classpath:jdbc.properties"/> <!-- 2.Database connection pool --> <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"&gt ...

Posted on Sat, 23 Nov 2019 16:41:54 -0500 by R0d Longfella

Summary of some common statements in SQL Server database

21. Reading of SQL running Log . EXEC xp_readerrorlog 0,1,null,null, 'start time', 'end time' 22. Alwayson status and transmission monitoring SELECT ar.replica_server_name AS [Copy name] , ar.availability_mode_desc as [Synchronization mode], DB_NAME(dbr.database_id) AS [Database name] , dbr.database_state_desc AS ...

Posted on Sat, 23 Nov 2019 14:29:01 -0500 by JayVee

Android Development Notes: imitating IOS switch selector control implementation, checkbox

Let's first look at the effect: Here we mainly use an open source project on github, which is easy to configure. Here's how to use it:The first is:To configure in the Gradle file: dependencies { implementation 'ch.ielse:switchbutton:1.0.1' } Of course, if it is an old version of Android Studio, it uses: dependencies { ...

Posted on Sat, 23 Nov 2019 12:37:42 -0500 by porta325

Gradle Core: Gradle Advanced Customization

Android Gradle Advanced Customization Batch modify generated apk file name There are many identical tasks in Android Gradle whose names are dynamically created and generated using Build Types and Product Flavors. If you modify the generated apk file name, you will modify the output packaged by Android Gradle.The Android object provides three pr ...

Posted on Sat, 23 Nov 2019 12:20:26 -0500 by Larry53

Hibernate+MySQL demonstration of Chinese naming

Recently, there is an opportunity to verify the feasibility of Chinese naming in a given development environment. The source code of the example is as follows: HibernateExampleZh Currently, Hibernate 3.3.2.GA is used. Later, more versions are tested. See the last part for eggs Test environment: Windows 7 Pro 64bit, JDK 1.7.0_80, MySQL 5.5.62, ...

Posted on Sat, 23 Nov 2019 11:46:38 -0500 by Duncan85

Dynamic increase / decrease form item (vue+element)

Recently, there is a demand to set the commodity member price for all commodities under the equipment group. The process is: select the member level and the equipment group to obtain the commodities not set the member price for this equipment group, and the page will automatically generate the commodity price form to set the commodity member pr ...

Posted on Sat, 23 Nov 2019 11:11:35 -0500 by tarun

Groovy advanced usage: file, xml, json processing

Next, I'll talk about Groovy's advanced usage and file processing. Class File Here is an example to explain the methods in the File class. The new GDK methods are: void append(Object text) appends the string text to the end of the file void eachFile(Closure closure) applies closures to each file in the specified directory Void eachfilerecur ...

Posted on Sat, 23 Nov 2019 09:19:45 -0500 by garfield213

Animate left and right transitions for View

This paper is synchronized from http://javaexception.com/archives/64 Question: In recent demand, there is a need for view to switch animation. To achieve this, click the button and slide the view from left to right. The view on the left disappears and the view on the right appears. It's a bit like the effect of a text running horse lamp, but ...

Posted on Fri, 22 Nov 2019 15:29:33 -0500 by ctsttom