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

Java project creation -- unified result processing and exception handling

1, IDEA plug-in use 1. Description Spring boot 2.2.6, JDK 1.8 and mysql 8.0.18 are used as demonstration here. Use IDEA as a development tool.   2. IDEA plug-in -- Lombok (1) IntroductionLombok can automatically generate constructor, getter/setter, equals, hashcode, toString and other methods for properties during compilation through annotation ...

Added by juneym on Sun, 26 Apr 2020 14:45:44 +0300

Spring entry to see this one enough!!! Not enough to find me!

Today, let's have some good guys. There are some java basics in front of us, How to say also need to have some frame right, don't say much, Huang sir takes you to open dry! It's over   Spring framework 1, Spring Brief Why learn spring? Advantages of traditional projects: easy to build Disadvantages of traditional projects: ...

Added by Rob2005 on Sat, 25 Apr 2020 19:20:44 +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

Detailed tutorial on Redis caching in the SpringBoot series

Introducing the use of caching in SpringBoot projects, let's start with an introduction to Spring's cache abstraction and JSR107. This blog is a note I made after learning Silicon Valley videos and referring to other blogs for learning purposes only. This blog will provide more detailed information about Spring's cache annotations, how to use t ...

Added by t3l on Tue, 21 Apr 2020 20:09:29 +0300

Tutorial on using the SpringBoot series log framework

Based on the previous blog, An introduction to the log framework of the SpringBoot series and its principles After the blog, this blog can help you learn about Springboot by providing a more detailed description of the specific use of the blog framework as a usage manual @[toc] 1. SpringBoot Log Level 1) Introduction to Log Level Briefly introd ...

Added by busnut on Tue, 21 Apr 2020 20:02:24 +0300

Upfront - backstage - environment building

1, Create pom project Name: atcrowdfunding01-admin-parent GroupId: com.atguigu.crowd 2, Create module: atcrowdfinding02 admin webui atcrowdfunding02-admin-webui 3, Create module: atcrowdfinding03 admin component     4, Create module: atcrowdfunding 04 admin entity   5, Create module: atcrowdfinding05 commo ...

Added by bacil on Tue, 21 Apr 2020 17:15:44 +0300

Why are people reluctant to use Mybatis after JOOQ is used in the project?

Preface: (welfare at the end of the article) Today I'd like to introduce a new ORM framework - > jooq. Maybe many friends haven't heard of this framework Mybatis framework has been used as the persistent layer access framework in Java projects before. However, some recent projects have been developed with JOOQ framework, indicating that the ...

Added by andrewdunstall on Tue, 21 Apr 2020 09:59:26 +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

NettyConfiguration of spring cloud gateway

This paper mainly studies the NettyConfiguration of spring cloud gateway NettyConfiguration @Configuration @ConditionalOnProperty(name = "spring.cloud.gateway.enabled", matchIfMissing = true) @EnableConfigurationProperties @AutoConfigureBefore(HttpHandlerAutoConfiguration.class) @AutoConfigureAfter({GatewayLoadBalancerC ...

Added by BZorch on Mon, 20 Apr 2020 18:20:59 +0300