Spring Series Tutorial 8: Two ways Spring implements transactions

1. Spring Transaction Concepts: Transactions are a series of actions that, when combined, are a complete unit of work. They must all be completed. If one fails, the transaction rolls back to its original state as if nothing had happened. Transaction management is an essential technology for enterprise application development to ensure data in ...

Added by freejellyfish on Sat, 25 May 2019 21:14:34 +0300

Enterprise Project - Page Trace Processing

In the enterprise, we often analyze the users who use our system, such as: what pages he likes to browse the system, that is, the frequency of browsing, and what functions he uses most. We need to do page marking! In the company confidentiality agreement, I do not map. I can only record some thorny problems I encountered in writing this functio ...

Added by nicelad_uk on Fri, 24 May 2019 01:31:42 +0300

How to get absolute path basePath from freemarker page

Source: https://segmentfault.com/a/1190000002967105 Traditional Relative Path Approach 1. freemarker acquisition system relative path mode Configuration in spring-mvc.xml <!-- FreeMarker View parsing such as return userinfo. . Configure the suffix name here ftl And view parser. --> <bean id="viewResolverFtl" class="org.springfr ...

Added by mjr on Thu, 23 May 2019 23:39:05 +0300

Java implements CORS cross-domain requests

problem When developing projects using front-end and back-end decoupling patterns, you often encounter the problem of not being able to obtain server-side data across domains. This is due to the browser's homology policy, for security purposes. Today, the front-end and back-end separated development model is very popular. Front-end and back-en ...

Added by adrive on Wed, 22 May 2019 22:58:42 +0300

SpringBoot - Creation of SpringApplication Object for Startup Principle

Create SpringApplication Object SpringBoot version 2.1.1.RELEASE @SpringBootApplication public class SpringbootDemoApplication { public static void main(String[] args) { SpringApplication.run(SpringbootDemoApplication.class, args); } This is the startup class for the SpringBoot project. Within the main method, the static run() ...

Added by Telemachus on Wed, 22 May 2019 21:35:59 +0300

Implementation of Spring4+CKEditor4 File Upload Function

The installation configuration of CKEditor can be easily documented. To correct some errors on the Internet, it is necessary to start the upload function of CKEditor and modify a hide flag in the CKEditor code.The CKEditor code downloaded from the official website is compressed, ugly, let alone modified.The hide flag defaults to true only becau ...

Added by wowiz on Wed, 22 May 2019 20:40:30 +0300

Notes - Advanced Java Foundation to Face Difficulties 1

Collection set The length of the array is fixed, and the length of the set is variable. Arrays store elements of the same type, which can store basic data type values. Collections store objects. And the types of objects can be inconsistent. Set framework import java.util.Collection; import java.util.ArrayList; //Common methods of Collection pu ...

Added by EvilCoatHanger on Tue, 21 May 2019 22:21:43 +0300

7/7 of Java Foundation in 7 days

The toString method of Object class Class Object is the root class of class hierarchy Each uses Object as a superclass All objects implement methods of this class //This is a subclass of the Object class, which implements all its methods public class Person{ private String name; private int age; public Person(){} public Per ...

Added by Jbert2 on Mon, 20 May 2019 22:20:59 +0300

Building Spring Security Application with Maven

1. overview This article explains how to use Maven to build Spring Security applications. Specific use cases using Spring Security dependencies will be discussed. The latest version of Spring Security can be found on Maven Central. This is a follow-up to the previous Spring and Maven articles, so for non-secure Sp ...

Added by kagedwebdesign on Sun, 19 May 2019 23:52:35 +0300

Construction of Redis Cluster

Construction of Redis Cluster I. Redis Download, Installation, Startup (Single Example) We installed Redis in the / opt directory and executed the following commands: $ cd /opt $ wget http://download.redis.io/releases/redis-4.0.9.tar.gz $ tar zxvf redis-4.0.9.tar.gz $ cd redis-4.0.9 $ make Now that the installation is complete, le ...

Added by peerData on Sun, 19 May 2019 17:38:04 +0300