Comparing two objects by reflection

In the development of java, Junit is an indispensable link to do single test. However, for the comparison of single measurement results, it is far from enough to use Assert assertion alone. Assert can only compare basic types, and for the equality of objects, only the value of the object can be taken ou ...

Posted by jonahpup on Sat, 05 Oct 2019 16:57:14 -0700

Question of accessing injected variables after injection of Spring configuration files

Code directly 1.Class OneClass public class OneClass { String s; public void setS(String s) { this.s = s; } } 2.Class Demo public class Demo { OneClass oneClass; public void setOneClass(OneClass oneClass) { this.oneClass = oneClass; } { System.out ...

Posted by AdamDowning on Sat, 05 Oct 2019 11:47:32 -0700

scope of configuring bean s

siye@r480:~/svlution/workspace/springcore4322$ tree src/ src/ ├── main │   ├── java │   │   ├── log4j.properties │   │   └── ocn │   │   └── site │   │   └── springioc │   │   └── domain │   │   └── User.java │   └── resources └── test ├── java │   └── ocn ...

Posted by ebm on Fri, 04 Oct 2019 03:48:44 -0700

Introduction to Spring MVC

Introduction to Spring MVC: 1. Create a maven project and import dependencies 2. Configure the core controller: 3. Create configuration files for spring MVC (as shown below): 4. Write controllers and use annotations to configure: 5. Test Spring MVC: 1. Create a maven project and import dependenc ...

Posted by DarkShadowWing on Tue, 01 Oct 2019 04:30:25 -0700

SpringBoot support for testing

Under the framework of micro-service, the whole system is cut into N independent micro-services to cooperate with each other, so there will be higher requirements for system availability. From large to small, it can be divided into three levels: unit testing for developer coding, interface debugging between micro-services and micro-services, a ...

Posted by justbane on Mon, 23 Sep 2019 05:50:28 -0700

Gradle Unit Testing

Gradle Unit Testing We can perform unit testing tasks by adding Java plug-ins to Gradle. By default, all tests in the project will be executed. If we only want to test one of the classes, we can use the Java system property test.single as the name ...

Posted by Saruman on Tue, 17 Sep 2019 20:04:57 -0700

Spring Framework Learning 02

Spring02 1. Content introduction 1. Spring Configuration Data Source 2. Spring Annotation Development 3. Spring integrates Junit Learning objectives 1) Knowing the data source (the role of connection pools) 2) Ability to complete Spring configur ...

Posted by djpeterlewis on Sat, 14 Sep 2019 07:07:15 -0700

Implementing java json serialization framework from zero manually

json json Is a serialized json framework implemented by java. Characteristic Eight basic types of support Basic Type/Object Array/Collection/Enumeration/Object Support Minimalist API Subsequent characteristics @ Support for Field annotations Integrity support for deserialized objects currently supports only basic deserialization. Why creat ...

Posted by IronCannibal on Wed, 11 Sep 2019 23:09:48 -0700

Chapter 10, Integration of Spring and Spring MVC

Article directory 1. Integration of Spring and Spring MVC 2. Spring Integration Spring MVC - Solution Configuration Listener 3. The relationship between Spring IOC container and Spring MVC IOC container 4. Handwritten Spring listener 1. Integ ...

Posted by TweetyPie on Tue, 10 Sep 2019 04:52:42 -0700

Java Encryption Technology-the Highest ECC of Asymmetric Encryption Algorithms

Links to the original text: https://my.oschina.net/mohaiyong/blog/221240 ECC ECC-Elliptic Curves Cryptography (ECC-Elliptic Curves Cryptography) is one of the most intensive public ke ...

Posted by stormszero on Sun, 08 Sep 2019 23:20:29 -0700