@Transactional Rollback Problem (try catch, nested)

The Spring transaction annotation @Transactional could have guaranteed atomicity, and the entire transaction could have guaranteed rollback if there were errors within the transaction, but adding try catch or transaction nesting could have caused the transaction rollback to fail.Test a wave. Get ready Build two tables to simulate two data opera ...

Posted by Brusca on Sun, 26 May 2019 18:35:54 +0200

Data Binding Learning Series (6) The Last Actual Warfare - Recycler View

Preface Think about it, I don't know what to add. As the saying goes, there is an egg to use in actual combat. So I use Data Binding to achieve the list effect of RecyclerView to draw a perfect end to this learning. Text text Not much nonsense. In order to achieve the effect, first of all, we must put the Recycler View of MainActivity in place. ...

Posted by Mark Baker on Sun, 26 May 2019 00:03:12 +0200

time module of python module

time Three Forms of Time Time stamp: Typically, a time stamp represents an offset calculated in seconds starting at 00:00 on January 1, 1970. We run "type" (time. time ()) and return the float type. Format String:'1999-12-06' ''' % y-Binary Year Representation (00-99) % Y4-digit Annual Representation (000-9999) % m m ...

Posted by pages on Sat, 25 May 2019 23:18:22 +0200

swift Notes - Basis (2)

Six, == Optinal== optional type (difficulty): One of the characteristics of swift grammar is that it is a reflection of type safety, Int?,float! Note that the symbols in the back must be close to the type in front, and there can be no blank in the middle; Only Optional type can be null (nil in oc), which ensures that non-optional objects ...

Posted by Bopo on Sat, 25 May 2019 20:56:24 +0200

In-depth introduction to Mybatis series three-configuration details of properties and environments (mybatis source code)

This article is reproduced from Nan Ke Meng In the previous article, Mybatis Series (2) - Introduction to Configuration (Mybatis Source Chapter), through a simple analysis of mybatis source code, we can see that in the mybatis configuration file, under the configuration root node, configurable properties, type Aliases, plugins, objectFactory, o ...

Posted by leetcrew on Fri, 24 May 2019 23:45:21 +0200

Node.js Template Engine Tutorial-jade Speed Learning and Practical Warfare 1

Environmental preparation: Global installation jade: NPM install jade-g Initialize the project package.json: npm init --yes After the installation is complete, you can use jade --help to view the command line usage of jade 1. Create a new index.jade file under the project directory inde.jade code: 1 doctype html 2 html 3 head 4 met ...

Posted by daucoin on Fri, 24 May 2019 23:15:53 +0200

The three definitions of function in js, function declaration, function homonymy repetition, function deletion,

Full Stack Engineer Development Manual (Author: Luan Peng) js series of tutorials 4-function, function parameters In js, function itself belongs to one kind of object, so it can be defined and assigned as the attribute of object or the parameter of other functions. The function name is only a reference to the object class of the functio ...

Posted by mikelmao on Fri, 24 May 2019 19:35:03 +0200

Spring transaction details

Before writing this blog, I first read Spring in action, and then read some articles about Spring transaction management on the internet. I don't feel that they are complete. Here, I will summarize the knowledge of the book and the Internet about the transaction. The reference articles are as follows: Detailed explanation of Spring transac ...

Posted by hadingrh on Fri, 24 May 2019 02:04:42 +0200

Animation Implementation of Android Custom View

Recently, we need to implement a histogram in our project and have an animation when we refresh the histogram (the histogram is dynamically drawn). The common way to realize the histogram is to inherit View class, copy onDraw() method, draw the corresponding rectangle (drawRect method) and text (drawText method) in onDraw() method according t ...

Posted by Tbull on Fri, 24 May 2019 01:07:05 +0200

dom4j parses XML

1. Parsing xml using dom4j * dom4j is an organization that provides parser dom4j for xml parsing* dom4j is not part of javase. What do you need to do to use the first step?*** Import dom4j to provide jar packagesCreate a folder libCopy the jar package under lib.Right-click on the jar package, build path -- add to build path- See the jar pack ...

Posted by dhe on Wed, 22 May 2019 23:57:19 +0200