Spring framework Foundation (04): AOP tangent programming concept, demonstration of several implementation methods

Source code: GitHub point here || GitEE point here I. Introduction to AOP Foundation 1. Profile of section programming AOP full name: Aspect Oriented Programming. A technique to realize the unified maintenance of program functions by precompiling and dynamic agent in runtime. Core function: it can isolate all parts of the business logic, reduc ...

Posted by caaronbeasley on Sun, 27 Oct 2019 17:46:03 -0700

Android 02 file storage

1. test 1. From the perspective of code visibility. Black box test, test code invisible through documents. Automated tests are tested by scripting. White box test, programmers write code to test. 2. Granularity from test. Unit test, integration test, system test. 3. From the level of violence. Pressur ...

Posted by shamilton on Sun, 27 Oct 2019 00:32:10 -0700

Spring MVChelloworld, components, architecture

Catalog I. create project II. Pit encountered Using tomcat in idea Use @ responseBody service tomcat console garbled III. architecture and components Frame structure Technological process Attention points assembly HandlerMapping HandlerAdapter \ ViewReslover I. create project Create a ...

Posted by artiemus on Sat, 26 Oct 2019 22:08:50 -0700

Monitor of three components of Java Web

Three components of javaWeb: Servlet Listener Filter This blog mainly talks about Listener listener. Monitor: The listener is an interface, and its specific content is implemented according to its own needs. Methods in the listener are called when a particular event occurs It needs to be registered ...

Posted by murtoz on Sat, 26 Oct 2019 18:04:58 -0700

Retrofit custom Converter implements sending String and receiving JSON

Retrofit has provided users with six converters, as follows: Gson: com.squareup.retrofit2:converter-gson Jackson: com.squareup.retrofit2:converter-jackson Moshi: com.squareup.retrofit2:converter-moshi Protobuf: com.squareup.retrofit2:converter-protobuf Wire: com.squareup.retrofit2:con ...

Posted by Spear Chucka on Sat, 26 Oct 2019 12:05:05 -0700

Convert RestTemplate json to entity class

Convert RestTemplate json to entity class Sometimes we need to use RestTemplate to access other url resources in java server, but because it is a class in two servers (JVMs), how to transfer entity classes? Contract entity class This example returns the entity class with AgreementApproveForOA as the ...

Posted by domainbanshee on Sat, 26 Oct 2019 10:13:16 -0700

The scrape framework crawls the data of the big lotto

github project address: https://github.com/v587xpt/lottery_spider# Last time I did a data crawling of dichroic sphere, in fact, the crawling of the big Lotto is also very simple. You can use request to crawl, but in order to make better progress, the crawling of the big Lotto uses the scratch framework. The operation mechanism of the summary ...

Posted by Cerberus_26 on Sat, 26 Oct 2019 08:31:19 -0700

Spring foundation topic 04 - automatic assembly Bean

Read the original text After reading the official documents of Spring, we can see that Spring basically provides us with three ways to assemble beans: Display configuration in XML. Display the configuration in Java code. Implicit bean discovery mechanism and automatic assembly. 1. Automatic assembly ...

Posted by brandye71 on Fri, 25 Oct 2019 22:43:19 -0700

Shiro's many Realm certifications

Multi Realm authentication Problem introduction Implementation plan First, MD5 and sha1 encryption are implemented respectively. MD5 Sha1 Realize multi Realm authentication in the project Implement Mapper interface Implement the corresponding mapper.xml file service processing Add multi Realm con ...

Posted by Noctule on Fri, 25 Oct 2019 10:24:54 -0700

WebApi learning a preliminary understanding and creation project

WebAPI I. definition of WebAPI II. WebAPI creation 3. WebAPI routing control I. definition of WebAPI A framework for providing data to the front end Restful data supply mode Post submission data (added) Get data (check) Put modification data (modification) Delete delete data Common for the fir ...

Posted by cyberplasma on Fri, 25 Oct 2019 03:31:06 -0700