With all due respect, you may not really be able to java Article 6: Stream performance is poor?Don't make a cloud out of a cloud

1. Feedback from fans Q: stream is five times slower than for loops. What is the reason for this? Answer: The Internet is a time when news is flooding. Three people become tigers when something is false and real happens.As a technology developer, you have to do it yourself. Don't let the world go by. Indeed, I've read this article by this fan, ...

Posted by amites on Wed, 24 Jun 2020 02:51:30 +0200

java framework SSM learning -- Spring's transaction control

When it comes to Spring AOP, we are going to enhance transaction control by ourselves, and the Spring framework is ready for us to use these functions. Of course, don't think that SrpingAOP can only enhance the transaction function. AOP can be used to enhance any method you want to enhance. So how do ...

Posted by supernova on Sun, 21 Jun 2020 10:18:32 +0200

OO Unit 3 Summary

1. The theoretical basis and application tool chain of JML 1. Theoretical basis Atomic expression \result: Represents the return value of a non-void method after execution. \old(expr): Indicates the value of an expression expr before executing the corresponding method \not_assigned(x, y,...): Indicates whether the variable in ...

Posted by shawnyoung on Sun, 21 Jun 2020 03:10:32 +0200

Spring Boot Principle Deep-Dependent Management

2.2 Deep Principle The traditional Spring framework implements a WEB service, which needs to import various dependent JAR packages, then write corresponding XML configuration files, etc. Compared with Spring Boot, it is more convenient, fast and efficient.So how does Spring Boot really do that? 2.2.1 Dependency Management Question: Why doesn't ...

Posted by joshi_v on Mon, 15 Jun 2020 21:30:25 +0200

SpringBoot+RabbitMQ learning notes RabbitMQ message persistence processing

I. Introduction   There is an autoDelete attribute in both @ Queue and @ Exchange annotations. The value is a string of boolean type. For example: autoDelete = "false". @Queue: whether to delete the queue automatically after all consumer clients are disconnected: true: delete, false: do not delete. @Exchange: automatically delete the ...

Posted by mslinuz on Wed, 29 Apr 2020 11:52:35 +0200

springboot uses the PropertyResource annotation to read the properties of the specified configuration file (podcast code)

Chapter one: SpringBoot/Spring uses @ Value for attribute binding (podcast code for wisdom spreading)   The ConfigurationProperties annotation will read the properties from the global configuration file by default. When there are many properties, the main configuration file(application.yml, application.properties) will be bloated, so it is ne ...

Posted by Nimbuz on Mon, 06 Apr 2020 19:01:17 +0200

Phoenix + HBase, let you operate HBase like MySQL

Operation of Phoenix associated HBase (three cases) Situation 1: Hbase already has existing tables. You can create corresponding views in Phoenix. Views can only be queried, not added, deleted or modified Table has been created and data exists in hbase, table name: phoenix Create the corresponding view in phoenix create view "phoenix"( pk ...

Posted by estero2002 on Wed, 01 Apr 2020 21:47:10 +0200

spring cycle dependency problem

1. The cause of circular dependency - injected through the constructor Let's define two interdependent bean s (injected through the constructor): @Component public class CircularDependencyA { private CircularDependencyB circB; @Autowired public CircularDependencyA(CircularDependencyB circ ...

Posted by headbangerbuggy on Wed, 11 Mar 2020 10:49:06 +0100

Spring AOP 2. X implementation of pre, post, surround and exception notification based on namespace configuration

SpringAop 2.x Introduction: The principle of namespace based configuration is to use post processor, which is simpler. Characteristic: Simplified configuration, There is no need to implement any interface when writing non intrusive notifications. Use the AspectJ expression to define the tangent point. B ...

Posted by snidog on Fri, 21 Feb 2020 07:17:00 +0100

XML based declarative transaction control configuration steps in Spring

1. Import Maven coordinates <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.0.2.RELEASE</version> </dependency> <de ...

Posted by fiorelina21 on Thu, 20 Feb 2020 07:36:28 +0100