AOP configuration based on xml file

AOP configuration based on xml file The notification class object is delivered to Spring for management, that is, the notification class object is configured <! -- 1. Configure the Logger object (here is the notification class) -- > <bean id="logger" class="com.mypro.utils.Logger"></bean> Use the aop:config tab to start ...

Posted by Griffin on Fri, 17 Apr 2020 22:43:49 -0700

Note: Spring nested ApplicationContext

Bean injection and injection are in the same ApplicationContext, so they are the same BeanFactory. However, Spring supports the ApplicationContext hierarchy, so one context and the associated BeanFactory are considered the parent of another. By nesting ApplicationContext, the configuration can be divided into different files, which is a godsend ...

Posted by Iceman18 on Fri, 17 Apr 2020 08:51:47 -0700

Detailed tutorial of spring MVC framework

Although this section is simple, it's very tedious. You can first understand the use of @ RequestMapping. It doesn't matter if you don't understand it very well. First, continue to learn. When you look back again, you will find that @ RequestMapping is so simple! @RequestMapping @RequestMapping can be used on controller classes or controller me ...

Posted by vbnullchar on Fri, 17 Apr 2020 08:51:37 -0700

maven creates multi modular projects

1. Project scaffold reference https://www.cnblogs.com/fishyy/p/10313566.html 2. Add spring MVC dependency in parent pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http: ...

Posted by Rongisnom on Fri, 17 Apr 2020 07:49:14 -0700

windows springboot+docker development environment and hello word

1. Download and install docker toolbox Download address: http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/ docker toolbox is a tool set, which mainly includes the following contents: Docker CLI client, used to run the docker engine to create images and containers Docker Machine. Allows you to run docker engine commands on ...

Posted by halm1985 on Fri, 17 Apr 2020 04:56:21 -0700

nacos configuration center timeout issue: java.net.ConnectException: no available server, currentServerAddr

1. Questions In a project architecture, use the SpringCloud microservice architecture, which configures Alibaba-Cloud to use SpringCloud components. The Service Discovery and Configuration Center uses Alibaba's open source component nacos, nacos-server is deployed in the centos7.0 environment under linux. Each service starts with a con ...

Posted by fatal on Fri, 17 Apr 2020 00:26:45 -0700

What is the difference between Class.forName and lassLoader?

Preface Recently, during an interview, I was asked the difference between a Class.forName() loading class and a ClassLoader loading class in the Java reflection.I didn't come up with it at that time. I studied it myself and wrote it down. explain Class.forName() and lassLoader can both load classes in java.ClassLoader is a class loader that fol ...

Posted by like_duh44 on Tue, 14 Apr 2020 19:49:52 -0700

@ Conditional and @ ConditionalXXX of spring boot

The most amazing feature of spring boot should be automatic configuration. Since the moment you introduced spring boot starter XX, spring boot has done a lot of work for us later. Let's talk about how the whole process is organized later. Today we'll take a look at @ Conditional, a key annotation in spring boot that determines whether a bean or ...

Posted by vcv on Tue, 14 Apr 2020 10:38:39 -0700

Spring clould Alibaba integrated Ribbon&Feign

Spring clould Alibaba integrated Ribbon 1. Add annotation @ LoadBalanced on resttemplate 2. When calling, you can use the service name to call, which is the same way as the previous use of Eureka The default is polling policy @RequestMapping("/getGoods") public ResponseResult getGoods() { String url="http://goods-provide/getGoods"; ...

Posted by Fusioned on Tue, 14 Apr 2020 06:16:44 -0700

SpringBoot series Mybatis integrated full detailed version

SpringBoot series (five) Mybatis integration Catalog About mybatis Project creation entity dao service serviceImpl mapper controller 1. About mybatis   MyBatis is an excellent persistence framework that supports customized SQL, stored procedures, and advanced mapping. MyBatis avoids almost all JDBC code and manual setting of parameters ...

Posted by pkellum on Tue, 14 Apr 2020 00:48:17 -0700