[Spring Data Repositories] study notes -- use existing repository and springrepository
The following are some notes about Spring Data Repositories in Spring-Data-mongoDB. Memo!
I feel that I am still familiar with official materials.
Spring Data
Two digits in a string appear only once, and the rest are in pairs.
Of course, if the problem is that there is only one different number, and other numbers are the same in pairs, then all numbers are exclusive or this number is obtained.
This time
I made a simple image similarity calculator using JAVA.Key Algorithms: Copy code 1 // full process 2 public static void main (String [] args) throws IOException {3 // get image 4 File imageFile = new File ("c: /1.jpg"); 5 Image image = ImageIO. read
EasyUI replaces non-16 icons
We know that the native icons of easyUI are ugly. Therefore, to achieve a better user experience, it is very necessary to replace its icon.
Native easyUI icons:
However, the easyUI-linkbutton component in easyui only
Use custom ListView to solve the nested problem in scrollView
In my opinion, the custom listView control is relatively simple and can solve the problem of nesting listview in scrollView.
The Code is as follows:
public class MyListView extends
Design Model-factory model learning1. Concepts
Factory mode definition: instantiate an object and use the factory method instead of the new operation. Achieve decoupling (avoid hard coding coupling ). The Factory method mode is the class creation
Spring Source Code-Start 21. The Container starts and triggers the ServletContextEvent event. Create a WebApplicationContext and prepare the configuration.2. protected void configureAndRefreshWebApplicationContext (ableablewebapplicationcontext wac,
Java Properties usage and format definition, javaproperties
Java. util. PropertiesExtendsHashtable
A text resource tool that allows you to conveniently read key-value pairs.
Overview of common methods
Initialization object
New Properties
Automatic slf binding implementation process judgmentThe binding implementation class is based on the agreed principle: the following steps are taken to determine the implementation class:1. the LoggerFactory scan implementation class path has
Data Structure: Graph implementation-adjacent table
Graph structure using an adjacent table
When the number of edges in the graph is small, using the adjacent table to implement the graph structure will waste a lot of memory space. Therefore,
Quick Gaussian filter function [improved version]
Corrected and optimized the variables. Previously, the author's function only supports 2nd-power images. This correction (the bitmap row width in windows is 4-byte aligned ).
It is basically
Design Pattern learning-Abstarct FactoryWhat
Abstarct Factory: provides an interface for creating a series of related or mutually dependent interfaces without specifying their specific classes.
Why
Abstarct Factory is a type of creation design
All sorting and searching algorithms
Import javax. mail. part;/*** sequential search and sorting ** @ author was built * @ version Creation Time: 04:15:10 */public class SequentialSearch {public static void main (String [] args) {Integer [] a = }; /
Usage of Spring Scheduled TimerAbstract: A Timer is often used in coding. It specifies to execute a code segment every one hour, or at every day. If java. util. Timer is used to do this kind of thing, there is no need to repeat the wheel.
Example of SharedPreferences storage obtaining information
SharedPreferences is easy to use and can easily store and read data. SharedPreferences can only store simple types of data, such as String and int. Generally, the data of complex types is
Talking about Hibernate-getting started
What is Hibernate?
Hibernate is a lightweight ORMapping framework.
The ORMapping principle (Object Relational Mapping) is to map the data in the Object to the data in the database according to certain
Java basics-Regular Expressions1. Why is a regular expression required? Regular Expressions can easily match data and perform more complex string verification, splitting, and replacement functions. For example, to determine whether a String is
Calculate the maximum ordered string in any unordered string
Private void compare () {// define an unordered String str = "sdifsdafsdabfwqicweedio"; // place it in a hashset to deduplicate A HashSet
Set = new HashSet
(); For (int I = 0;
Rewrite the ajax method to redirect to the logon page when the asynchronous request session expires
Generally, we will judge the logon status in the filter. If we do not log on, we will jump to the logon page. The core java code of the filter is as
Think in java note (1)I don't know what to do after work. Everything we should do is almost done. Let's take a look at spring's things. After all, these things are mostly used. But I want to take a look at javaee. There are many design patterns in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service