Redis for spring boot

The following dependencies are introduced into the pom.xml of the project: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-redis</artifactId> </dependency> To configure: #redis host spring.redis.host=192.168.3.18 View the RedisAutoConfigu ...

Posted by antonyjohn on Mon, 27 Jan 2020 07:16:10 -0800

Hadoop learning Chapter 2 HDFS

Hadoop learning Chapter 2 HDFS Chapter II HDFS HDFS overview HDFS definition Advantages and disadvantages of HDFS HDFS architecture HDFS file block size (interview focus) Common command practice HDFS client operation (development focus) HDFS client environment preparation HDFS file download HDFS ...

Posted by goa103 on Mon, 27 Jan 2020 03:14:04 -0800

How to move files from one git repo to another (not clone) and keep history

Our Git repository starts as part of a single Monster SVN repository, where each project has its own tree, as follows: project1/branches /tags /trunk project2/branches /tags /trunk Obviously, using svn mv to move files from one file to another is easy. But in Git, each project is in its own repository, and ...

Posted by gray_bale on Sun, 26 Jan 2020 22:55:00 -0800

Define custom properties

I need to implement my own properties, such as com.android.R.attr Nothing was found in the official documentation, so I need information on how to define these properties and how to use them from my code. #1st floor Qberticus has a good answer, but lacks a useful detail.If you want to implement these in the library, replace: xmlns:w ...

Posted by Stevan on Sat, 25 Jan 2020 20:50:19 -0800

Spring Road (17) - Configure Spring MVC with annotations

background The previous article details the process of configuring SpringMVC using xml, rather than specifying a Dispatcher Servlet, specifying a container configuration file, and then writing controllers and views. Similar to using annotation configurations, we have a class responsible for specifying ...

Posted by Phirus on Sat, 25 Jan 2020 16:46:23 -0800

MyBatis 07-Dynamic SQL-Caching Mechanism-Reverse Engineering-Paging Plug-in for Java Framework

MyBatis You are studying on the first day of the New Year!Don't learn what to do, fight the landlords... people are not together.Learn, study makes me happy!In addition to the responsibility of poems and distant places, I also want to be responsible, but concubines can not do it. What should I do?What do you say? Why can someone else not do it ...

Posted by smith.james0 on Fri, 24 Jan 2020 22:45:11 -0800

Spring Road (12) -- assembling bean s in annotation configuration

background The last one talked about how to assemble bean in the xml configuration. In fact, the principle of bean in the annotation configuration is exactly the same as that in xml, and the effect is the same, but it adopts different ways. Therefore, we do not change the examples in this article, but ...

Posted by esport on Fri, 24 Jan 2020 02:18:11 -0800

Java Web realizes the function of simple registration and login - (Registration)

The registration and login function implemented here is the content of a big assignment after learning java web course. It does not involve any framework technology, but is made up of basic knowledge It is. It's suitable for children's paper that just started to touch the web. ——Home page: ...

Posted by shoppingspree on Wed, 22 Jan 2020 00:32:56 -0800

Details of Attributes, defStyleAttr and defStyleRes in Android

The system's own View can be configured in xml, and the custom View can also be configured in xml. In order to enable the custom View's properties to be configured in xml, the following four steps are required: 1. Add attributes for custom View through < declare styleable > 2. Declare the att ...

Posted by ryanthegecko on Wed, 22 Jan 2020 00:20:38 -0800

javaFX displays another form in the event of one button

Button event for the first form: @FXML protected void show2Action() throws IOException { Stage stage = new Stage(); AnchorPane pane = FXMLLoader.load(getClass().getResource("javafxcontroller2.fxml")); Scene scene = new Scene(pane,300,400); stage.setScene(scene); stage.show(); } The code ...

Posted by met0555 on Tue, 21 Jan 2020 09:09:10 -0800