Spring IoC XML based DI detailed configuration solution [20000 words]
This paper introduces in detail the complete solution of DI configuration based on XML for Spring IoC.
Previous articles The concept of Spring IOC container and IoC assembly based on XML In, we learned two methods of dependency injection. Now let's take a look at some more detailed configurations. This article is based on spring 5.2.8.
...
Posted by nsbrown on Fri, 10 Sep 2021 14:33:13 -0700
Spring dependency injection XML based DI
DI: assign values to attributes
spring calls the parameterless construction method of the class to create an object. Assign a value to the property after the object is created.
To assign a value to an attribute, you can use:
Tags and attributes in xml configuration filesUsing annotations
DI classification:
Set injection is also called set ...
Posted by fatmart on Wed, 08 Sep 2021 15:01:00 -0700
xml parsing and dom4j API explanation
1, xml parsing
Read and write xml
1.1 xml parsing method (parsing idea)
domsax
1.1.1 dom parsing method
w3c standard – official. dom parsing is to analyze the whole xml document into a dom tree and put it into memory.
Advantages: any node can be operated. You can read and write. Disadvantages: if the file is large, it will occup ...
Posted by Horizon88 on Tue, 07 Sep 2021 19:33:06 -0700
freemarker tag usage and configuration
After some time of research, freemarker really works better than jsp, and freemarker strictly divides the mvc pattern.Show on the page as a template filler.The following describes the use and configuration of freemarker that I experienced. Configuration tags are good for maintaining and expanding the project.
Create a freemarker configuratio ...
Posted by FrankHarley on Mon, 20 Jul 2020 08:38:52 -0700
Hiberante reverse-generates database tables
1,hibernate.cfg.xml
Comment out this section of configuration
<!--Update database level automatically-->
<!--<property name="hbm2ddl.auto">create</property>-->
2. New Generate Database Table Tool Class
public class HibernateSchemaExport {
static Session session;
static Configuration ...
Posted by rigi2 on Sat, 18 Jul 2020 08:49:13 -0700
Android login registration interface add video background method (simple version)
Describes how to add a video background to the interface found on the Internet, which mimics keep
1. First add the raw folder under the res folder and copy in the video you want to use
2. Add video_under the layout folderBackground.xmlLayout, add Videview control inside layout
3. Change AndroidManifest.xml Content removes Bar from the disp ...
Posted by GrayFox12 on Thu, 16 Jul 2020 08:04:36 -0700
android exceptions collect error information and save it to the crash folder
Save the log file to the sdcard, directory: crash folder under the sdcard root directory
First, set permissions, no permissions to the final effect
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>Two classes must be crea ...
Posted by falcon1 on Wed, 15 Jul 2020 08:11:06 -0700
Android evokes app in many ways
Method 1 (aroused by Intent)
Our own app Code:
ComponentName componetName = new ComponentName(
"com.lh.jimtrency.webviewdemo",
"com.lh.jimtrency.webviewdemo.MainActivity");
//(package name of another application, Activity to start)
Bundle bundle = new Bundle();
ArrayList<String> strings=new ArrayLis ...
Posted by kaze on Tue, 14 Jul 2020 08:49:12 -0700
Android Custom WheelView
function
Wheeled Select View, similar to TimePicker or DataPicker, allows you to set whether or not there is a boundary (the beginning and end meet)
Design sketch
Explain
Inherited from View to assist with scrolling with OverScroller, using a minimum API version of 9.If necessary, you can use Scroller instead, w ...
Posted by bobicles2 on Mon, 13 Jul 2020 08:46:00 -0700
Android Custom WheelView
function
Wheeled Select View, similar to TimePicker or DataPicker, allows you to set whether or not there is a boundary (the beginning and end meet)
Design sketch
Explain
Inherited from View to assist with scrolling with OverScroller, using a minimum API version of 9.If necessary, you can use Scroller instead, w ...
Posted by Kane250 on Mon, 13 Jul 2020 08:47:24 -0700