Transaction annotation in Spring@Transactional
@Transactional attribute
The @Transactional annotation can only be applied to public modifiers and will not work with other modifiers without error.
@Transactional ly is typically added to an implementation class or implementation class method, not to an interface or interface method.
@Transaction ...
Posted by The Wise One on Sat, 01 Feb 2020 18:12:33 -0800
Installing intelliJ IDEA on a Mac
This is the blogger's first article in blog park. New arrival, please give me more advice ~
I'm sure you already know that IntelliJ IDEA is a very comfortable IDE, so I won't talk much about the benefits of IntelliJ IDEA here. (hereinafter referred to as IDEA)
According to the installation sequence of bloggers, you may have stepped into some ...
Posted by dkim777 on Thu, 14 Nov 2019 19:47:15 -0800
13. Spring MVC exception handler
The dao, service and controller of the system are all thrown upward through throws Exception, and finally the spring MVC front-end controller is handed over to the exception processor for processing. Spring MVC provides a global exception handler (only one exception handler in a system) for unified exception handling.
Custom exception class
Def ...
Posted by BZorch on Mon, 11 Nov 2019 22:52:00 -0800
Source code analysis of Spring Aop
1. Dynamic agents: Jdk and Cglib
I. principle difference:
java dynamic proxy uses reflection mechanism to generate an anonymous class that implements the proxy interface. It calls InvokeHandler before calling the specific method.
cglib dynamic proxy uses asm open source package to load the class file ...
Posted by Grande on Sat, 26 Oct 2019 07:14:54 -0700
Android Studio plug-in development MVP framework code generation plug-in
I. overview
When using Android Studio, plug-ins are often used to improve development efficiency (laziness). Some of them are commonly used: GsonFormat, ButterKnife, etc. Because introducing the mvp architecture into the project and writing various classes is a very tedious and repetitive task, so I wrote this plug-in at that time. Now I just ...
Posted by hoolahoops on Mon, 14 Oct 2019 05:53:46 -0700
Use of Thymeleaf objects: date objects
Thymeleaf uses two objects ා dates or ා calendars in the template to process dates, most of which are similar.
Development environment: IntelliJ IDEA 2019.2.2Spring Boot version: 2.1.8
Create a new Spring Book project named demo.
1,pom.xmlAdding Thymeleaf dependencies
<dependency>
<groupId>org.springframew ...
Posted by haddydaddy on Sun, 13 Oct 2019 13:28:16 -0700
WebStorm Download and Installation
As we all know, WebStorm is a JavaScript development tool of jetbrains company. At present, it has been praised by Chinese JS developers as "Web front-end development artifact", "the most powerful HTML5 editor", "the most intelligent JavaScript IDE" and so on. Homologous to ...
Posted by jimmayhugh on Wed, 02 Oct 2019 14:52:33 -0700
Java Learning Notes: Basic Programming Concepts
9.23-9.26
Go to the website and download intellij IDEA https://www.jetbrains.com/idea/download/#section=windows
1, classpublic class hello {...} where Hello is the name, if you modify the name on this basis, the compilation will be wrong (the file name is still hello.java, so the file name and name must ...
Posted by mallard on Thu, 26 Sep 2019 06:37:53 -0700
Spring Boot 2 is configured using Servlet, Listener, and Filter
Development Environment: IntelliJ IDEA 2019.2.2Spring Boot Version: 2.1.8
Create a new SpringBoot project named demo.
1. Configuring with Servlet s
1. Modify the code for the startup class DemoApplication.cs and add the annotation ServletComponentScan, which scans for Servlet components, including using @WebServlet,
Classes decorated with @ ...
Posted by Awanka on Tue, 24 Sep 2019 09:59:45 -0700
Apollo Source Parsing-Setting up Debugging Environment
Preparation
Local runtime environment
JDK : 1.8+
MySQL : 5.6.5+
Maven : 3.6.1
IDE : IntelliJ IDEA
Apollo's table structure uses multiple default declarations for timestamp, so it requires more than 5.6.5 versions.
From the official warehouse https://github.com/ctripcorp/apollo Fork comes out of its own warehouse https://github.com/wupeixuan ...
Posted by Asnom on Wed, 18 Sep 2019 04:45:41 -0700