React technical principles and code development practice: from components to life cycle

1. Background Introduction React is a JavaScript library for building user interfaces. It originated from Facebook, which implemented a front-end view layer framework in JavaScript and open sourced the project. Facebook is now at the helm full-time. React has many features, such as: Declarative programming: React adopts a declarative programming method, that is, using JSX […]

Spring IOC – Bean life cycle instantiation

As mentioned in the Spring startup process article, the initialization of the container starts with the refresh method, which calls the finishBeanFactoryInitialization method during the initialization process. In this method, the DefaultListableBeanFactory#preInstantiateSingletons method will be called. The core function of this method is to initialize non-lazy-loaded beans, and provides two extension points. The source code […]

Mobile Development Technology Assignment 2: Implementation of Recycleview click-to-jump function

1. Function description Implement the functional design of page jump and return to the module that has added recyclevie 2. Development Technology Development tools: Android studio Version: API 32 Android 12 3. Development ideas and core code In the last article, I placed recycleview1 in fragment2 (information interface). Due to design needs, I now put […]

SpringBoot application starts org.apache.catalina.LifecycleException

Table of Contents SpringBoot application starts org.apache.catalina.LifecycleException Problem Description Cause Analysis Solution 1. Check the resources that the application depends on 2. Check application configuration 3. Check port occupancy 4. Check dependent component version compatibility 5. Check the log files Application scenario example: org.apache.catalina.LifecycleExceptionexception caused by database connection exception SpringBoot application starts org.apache.catalina.LifecycleException When developing […]

Android mobile development assignment–implementation of click-to-jump function of Recycleview

Table of Contents 1. Design goals 1.1 Design requirements 1.2 Introduction to design functions 2. Detailed design explanation 2.1 Define the contactMS class 2.2 Define layout files 2.3 Modify Myadapter adapter 2.4 Define ContactDetailsActivity.java 3. Run interface display 4. Source code warehouse address 1. Design Goals 1.1 Design Requirements Relying on assignment 1, add a […]

Android mobile development — page jump by clicking on RecyclerView content

1. Experimental objectives: Add a click function to each item of the recyclerView in the first experiment, and jump to a new view interface after clicking. 2.Technical description: 1. Tools used: Android studio 2. Version information: API 32 Android 12 3. Main technical content: recyclerview, adapter, activity, fragment 3. Design ideas: Change each line of […]

Mobile development-simple implementation of Recycleview click-to-jump function

Homework objectives Relying on assignment one (mobile development – experiment 1 – simple implementation of WeChat interface – CSDN blog), add a click function to each item of recyclerView, and jump to a new view to display information after clicking. Design ideas First, design the page discover_detail.xml that recycleview will jump to, then create a […]

recycleView (2) Grid, there is spacing in the middle, left, right, top, and bottom have no spacing

1. Function 1. Renderings The top, bottom, right and left of item are all 0 2. Code 1. Key code //Set the spacing between RecycleView items. The upper and lower spacing is 20 for sorting, and the left and right spacing is 20 for sorting. binding.rv.addItemDecoration(object : RecyclerView.ItemDecoration() {<!– –> override fun getItemOffsets(outRect: Rect, view: […]

Spring Bean life cycle

1. Foreword: Before we understand the life cycle of Spring Bean, let’s first understand two concepts: 1.1 What is a Bean In Spring, the objects that form the backbone of your application and A bean that are managed by the Spring IoC container are called beans. is an object that is instantiated, assembled, and otherwise […]