File upload Spring MVC cross server
prerequisite
The value of enctype of form must be multipart / form data. The function of enctype is the type of request body
method must be post
Need to have < input type = "file" / > tag
To implement a file using the Commons file upload component, you need to import the corresponding supporting jar package of the comp ...
Added by elle_girl on Tue, 28 Apr 2020 19:17:11 +0300
MyBatis L2 cache implementation details and precautions
Introduction to L2 cache
In the first level cache mentioned above, the largest sharing range is within a SqlSession. If multiple sqlsessions need to share cache, they need to use the second level cache. After the second level cache is enabled, the cachenexecutor will be used to decorate the Executor. Before entering the query process of the fir ...
Added by sabien on Mon, 27 Apr 2020 12:20:29 +0300
python realizes the wechat automatic reminder function of seckill goods (with code)
Technology realization principle: get the specific commodity information of JD, and then use wechat to send reminders
Tool: two microsignals are needed, which are mutual friends
If you want to learn Python or are learning python, there are many Python tutorials, but are they up to date? Maybe you have learned something that someone else probabl ...
Added by Pastulio on Mon, 27 Apr 2020 10:54:48 +0300
A process of Spring Bean from scratch
There is a beginning but no end
Experienced the history of java development, from the early writing of native servlet s, self-developed mvc and jdbc tools, and the use of open-source framework struts, hibernate, jsp, spring, springmvc, freemaker, springboot, to the final front and back-end separate development, the first development tool is e ...
Added by robinas on Fri, 24 Apr 2020 09:45:41 +0300
Transaction control configuration based on xml file
Configure transaction manager
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver"></property>
<property name="url" value="jdbc:mysql://localhost:3306/myword"></property>
<property name="username" ...
Added by blt2589 on Tue, 21 Apr 2020 06:49:54 +0300
freecplus framework - directory operation
1, Source code description
Freecplus is a C/C + + open source framework under Linux system. Please go to the C language technology network (www.freecplus.net) to download the source code.
This article introduces the directory operation functions and classes of freecplus framework.
The declaration file for functions and classes is freecplus / 6 ...
Added by GrexP on Mon, 20 Apr 2020 19:45:17 +0300
freecplus framework - load parameter file
1, Source code description
Freecplus is a C/C + + open source framework under Linux system. Please go to the C language technology network (www.freecplus.net) to download the source code.
This paper introduces the method of loading parameter file in freecplus framework.
The declaration file for functions and classes is freecplus / 65124; freec ...
Added by natbrazil on Mon, 20 Apr 2020 19:41:01 +0300
Use fonts in Android O XML
Use fonts in Android O XML
2017/9/25 20:14:35
Android 8.0 introduced a new feature, fonts in XML, that allows you to use fonts as resources.This means that you no longer need to bundle fonts as assets.Fonts are compiled in R files and, as a resource, are automatically used on the system.You can then access these fonts using a new resour ...
Added by bios on Sun, 19 Apr 2020 19:35:47 +0300
Write a WeChat Applet Development
Previously I saw a blog park on the web News Service Open Interface Because of the habit of watching IT news on the blog site, the idea of developing a WeChat applet using the open API came into being in order to browse the news concisely and conveniently anytime, anywhere.
1. mpvue
Usually the technology stack has Vue, this applet function ...
Added by preet_harman83 on Fri, 17 Apr 2020 19:51:21 +0300
Odoo Web front end interface details - 2
As mentioned in the previous chapter, the login interface appears. After we input the user name and password, what did odoo do? The developer mode in chrome. See the request as follows
The code is as follows
# web/controllers/main.py:483
# Login logic,
if request.httprequest.method == 'POST':
old_uid = request.uid ...
Added by Bluemercury on Fri, 17 Apr 2020 18:13:19 +0300