Creating Java SE Spring Project Example under IDEA
1. Creating projects
Step 4: Whether to automatically create an empty Spring container configuration file, the default file name is spring-config.xml. Check it or not, if not, you should create it later.
Step 5: Set up how to add the libraries Spring will use?
Use library: Select the jar ...
Posted on Sat, 29 Jun 2019 16:36:37 -0400 by falcons
Use of Material Design (1) Use of TabLyout
Use TabLayout+Fragment to implement the top tab
Wednesday, September/7, 2016
Look at the picture first.
With Tablayout, you first need to add Design packages to your project
In activity_main.xml layout file
Posted on Sat, 29 Jun 2019 15:04:02 -0400 by error_22
The 2017 Google I/O Global Developers Conference was held at Shoreline Amphitheatre, Mountain View City, California, USA, from 17 to 19 May 2017. Google fully introduced the application of AI in various fields at this conference. It also introduced iOS version voice assistant, the latest version of Android O and VR eyeglasses series. The mos ...
Posted on Sat, 29 Jun 2019 14:21:34 -0400 by ShaolinF
Taking the multi-to-multi mapping of student courses as an example, each student can choose more than one course, and each course can be selected by more than one student. Many-to-many mappings can be divided into two types: one-way, many-to-many and two-way, many-to-many.
1. One-way multi-to-multi mapping: Students are the main subjects here. ...
Posted on Fri, 28 Jun 2019 20:32:19 -0400 by stenk
Difficulties in DAO Layer Testing
Repeatability, the data from each unit test run is repetitive
Independence, test data and actual data are independent of each other
Pretreatment of dirty data in database
Can't change the data in the database
DAO Layer Testing Method
Use memory databases, such as H2. Advantages: No need to empty irrelevant d ...
Posted on Fri, 28 Jun 2019 19:12:51 -0400 by monkeypaw201
Struts front-end controller is Struts Prepare AndExecute Filter filter. Like ordinary filters, this filter has two main methods: init (FilterConfig filter Config), doFilter (Servlet Request req, Servlet Responses, FilterChain chain). Now let's talk about what these two methods have done.
Init() method detailed steps:
public void init(Filte ...
Posted on Fri, 28 Jun 2019 18:12:31 -0400 by Ellypsys
Reference: http://www.runoob.com/w3cnote/android-tutorial-toggle button-switch.html
The basic UI controls for Android introduced in this section are: Toggle Button and Switch, which are both switch components, but the latter need to be used after Android 4.0, so the minsdk in Android Manifest.xml file needs to be >= 14, otherwise error wil ...
Posted on Fri, 28 Jun 2019 16:20:05 -0400 by happyme
In daily Android development, a large part of the need to use gradient color, sometimes the UI will provide us with a set of corresponding image resources, so that we can use it directly, of course, we can also achieve color gradient through code:
1. Implementing color gradient in XML
A relatively simple way to achieve color gradi ...
Posted on Fri, 28 Jun 2019 16:18:09 -0400 by pouncer
When it rains, it's boring in the lab. In meditation, there's a little experiment that I wanted to do a long time ago. For the text box in the form of from, after submit, I get the parameters in the background. Is it based on the id of the text box or the name of the text box? A very simple little problem, so I wrote a demo to test, the test co ...
Posted on Fri, 28 Jun 2019 14:56:38 -0400 by alex_bg
Real-time file synchronization in linux system using Rsync+sersync
Source: centos 6.5
Target end: centos 7
1. Source and Target Close SELINUX and Firewall
2. Create groups and users at the target end according to the source group and user
Note: uid and gid source and target must be consistent
First, the following steps are operated on ...
Posted on Fri, 28 Jun 2019 14:40:07 -0400 by dmcke5