Spring container and its initialization

1. Some concepts in spring When reading spring source code or related literature, we often encounter these nouns: webapplicationcontext - ApplicationContext - ServletContext - ServletConfig. These nouns are very similar but have different scope of application, which is easy to cause confusion in the understanding of spring's internal implement ...

Posted by buraks78 on Thu, 24 Oct 2019 07:13:34 -0700

Basic steps and code of Mybatis framework

Basic steps and code of Mybatis framework 1.ji create the required database 2. Configure the global configuration file mybatis ﹤ config.xml (other file names are preferred) <?xml version="1.0" encoding="UTF-8"?> ...

Posted by petrosa on Thu, 24 Oct 2019 07:01:50 -0700

A new micro ORM open source framework

Weed3 a micro ORM framework (only 0.1Mb) Source: https://github.com/noear/weed3 Source: https://gitee.com/noear/weed3 In 2005, I started to write the first generation version of this framework... In 2008, I entered into the Internet company restructuring and wrote a 2-generation version... In 2014, refactoring wrote the current generation 3 ve ...

Posted by silrayn on Thu, 24 Oct 2019 01:05:01 -0700

Eureka get service list source code analysis

In previous articles: EurekaClient automatic assembly and startup process analysis In, we mentioned that there is a refresh thread and an operation to pull the registration information from the server in the DiscoveryClient like constructor. These are the two situations in which eureka obtains the service list: Full access: pull all services w ...

Posted by jrodd32 on Wed, 23 Oct 2019 19:42:13 -0700

Soa architecture splits the presentation layer and service layer into independent projects [transformation 1]

Delete the web project reference first image.png Then cut the E3 manager web in the folder to the same level as E3 parent. image.png After shearing image.png And then start the transformation in eclipse. e3-manager pom.xml < module > E3 Manager Web < / module > delete Then change E3 manager service ...

Posted by s_r_elliott on Wed, 23 Oct 2019 15:08:34 -0700

Example code for calling football data [live text] API

share www.feijing88.com Example code for calling the [text live] interface of import javax.xml.bind.JAXBContext; import javax.xml.bind.Unmarshaller; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import java.io.ByteArrayInputStream; import java.nio.charset.StandardCharsets; import java.nio.file.Fil ...

Posted by rob.weaver on Wed, 23 Oct 2019 09:34:20 -0700

Method injection of spring learning

Single bean injection multiple beans MyPrototype,MyController @Component @Scope("prototype") public class MyPrototype { } @Controller public class MyController { @Autowired MyPrototype myPrototype; public MyPrototype getMyPrototype() { return myPrototype; } } MyConfig @Configuration @ComponentScan(value="com.learn.annota ...

Posted by discostudio on Tue, 22 Oct 2019 08:46:44 -0700

09- webpack load data file json, xml, csv

I. loading json file Built in support for JSON parsing, that is, import Data from './data.json' will run normally by default. 1.1 add json file demo09 |- package.json |- webpack.config.js |- /dist |- bundle.js |- index.html |- /src |- Hua Wencaiyun.ttf |- icon.png |- st ...

Posted by sweetstuff2003 on Tue, 22 Oct 2019 08:06:01 -0700

Mybatis source code initialization of mybatis

The initialization of Mybatis is completed by SqlSessionFactoryBuilder. The main work is to parse the XML file, encapsulate the parsed class contents into the Configuration class, and finally encapsulate the Configuration class into SqlSessionFactory and return it. Since then, the initialization is completed. Three classes, XMLConfigBuilder, XM ...

Posted by zigojacko on Tue, 22 Oct 2019 06:03:10 -0700

The definition of spring learning bean

In addition to @ bean defining beans, spring provides other forms of definition. @Component, @ Repository, @ Service, @ Controller and @ Configuration @Component is a general annotation of spring definition bean s, @ Repository, @ Service and @ Controller, all of which inherit @ component.@Repository is used for persistence layer, @ Service is ...

Posted by malcx on Mon, 21 Oct 2019 22:22:17 -0700