2018 Week 17 Summary Why Spring AOP Does Not Work How to Become a Technologist

The reason why Spring AOP does not work records two situations in which AOP does not work in work. One is to use the method in the aspect class as the entry point (otherwise, it may fall into recursion or iterative calling problem), and the other is the entry point method When calling other methods in the same class (because only the enhancement method of the proxy class is used when calling the pointcut method, and the corresponding method is still called by the proxy object inside the pointcut method, so the enhancement notification of other methods called internally does not work).

How to become a technical expert is a summary of the article on how to quickly become a technical expert on the Internet. Becoming a technical expert is a direction that most programmers can consider in their career planning. To become an expert, you must first have a good attitude, do not be superstitious about authority, insist on learning and keep improving, and secondly, master good learning methods, convert knowledge into abilities, develop good coding habits, and solve business problems at the same time. growing up very fast.

Talking about log printing specification is a summary of some log irregularities in work. Log exception handling is very important but not urgent and will be ignored. Many people don’t care about it during development. There are a lot of useless logs and other issues. Whether log exceptions can be handled well is an important sign to distinguish a developer's sense of responsibility and even ability.

Interfaces and abstract classes in Java compare the differences between interfaces and abstract classes. Interfaces represent a like-a relationship and advocate "interface-oriented programming". Java's own dynamic proxy also requires that classes must implement corresponding interfaces. The variables in the interface are public static final by default, and the methods in the interface are public abstract by default. In order to realize new features such as functional programming, JAVA itself is constantly expanding the functions of interfaces. For example, JDK8 allows static methods and default methods to be defined in interfaces; JDK8 allows non-public static methods to be defined in interfaces, etc.;

Deadlock and prevention summarizes the four necessary conditions for deadlock in the process of multi-threaded concurrency: mutual exclusion of resources, non-preemption of available resources, occupied resources and application for other mutually exclusive resources, and circular waiting. The prevention of deadlock is to destroy the above four necessary conditions as much as possible. The main practical thing is to break the occupation and application and circular waiting conditions. To avoid deadlocks in actual Java programming, pay attention to avoiding nested locks, reduce the lock range as much as possible, avoid waiting indefinitely, and release in finally when using locks.

Spring Web common interview questions talk about the initialization process of the Web container, the relationship of the IOC container in Spring MVC, the workflow of Spring MVC, the design advantages and the main differences with Struts2.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325026407&siteId=291194637