Tomcat Virtual Host or Secondary Domain Name Configuration

Project Host Configuration Based on Virtual Directory In Tomcat, the default virtual directory is webapps, but for the project location, we can also set up Context to achieve, a Host can set up more than one Context; <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xm ...

Posted by Wldrumstcs on Sun, 13 Oct 2019 11:27:47 -0700

Step by step analysis of spring bean life cycle

The life cycle of spring beans is the basis and difficulty for further study of spring. This article will elaborate the life cycle of spring beans in the way of code + graphic conclusion. This article will clarify the following figure.   I. Project structure and source code 1. Program directory structure  2.applicationContext.xml &l ...

Posted by zenabi on Sun, 13 Oct 2019 10:20:41 -0700

Android Uses Popup Windows to Customize Bubble Bubble Window

As a rookie, he suddenly wanted to know about the bubble pop window, so he wrote a simple pop window to look for information. Personal feeling is in line with the level of novice birds;   First, customize the bubble box public class MyLinear extends LinearLayout { private Paint paint; // ...

Posted by roliver on Sun, 13 Oct 2019 08:55:04 -0700

Android Development (10) ActionBar & Message & Notification & Broadcasting is all in this article!

I. Use of ActionBar Action Bar is the application of the top rectangular bar, the content is generally app icon, app name, menu buttons, tab navigation, etc. 1. Display and hide ActionBar xml method: Setting the theme attribute of application or activity in manifest can display and hide (theme with NoAction Bar) java method: first, getSupportAc ...

Posted by Irvin Amoraal on Sun, 13 Oct 2019 08:42:57 -0700

SpringBoot is packaged as a war package and runs in tomcat

Let's take a look at the simplest project I've created. controller class @RestController public class TestController { @RequestMapping("index") public String index() { return "hello"; } } The pom file hasn't been modified, so let's start the project directly. Look at the version of embedded tomcat in the startup log. My ...

Posted by robpoe on Sun, 13 Oct 2019 05:41:56 -0700

Summary of IoC Loaded Bean Definitions

Recently, the spring source code has been re-parsed so that I can better read the spring source code in the future. If you want to discuss it in depth, Please add me QQ:1051980588. 1 ClassPathResource resource = new ClassPathResource("bean.xml"); 2 DefaultListableBeanFactory factory = new DefaultListableBeanFactory(); 3 XmlBeanDefinitionRe ...

Posted by maga2307 on Sun, 13 Oct 2019 03:46:45 -0700

Deep and Shallow Copies (Objects)

Cloneable:CloneableSupportedException clone() provided by the Object class can only be used if the subclass implements the Cloneable interface, otherwise the above exception will be thrown. protected native Object clone() throws CloneNotSupportedException; To make an object copy, we must implemen ...

Posted by gplaurin on Sat, 12 Oct 2019 10:03:38 -0700

python day 9: xlm module, configparser module, subprocess module

Catalog python day 9 1. xml module 1.1 First Understanding xml 1.2 Traversing specified nodes of xml documents 1.3 Manual creation of xml documents through python 1.4 Two Ways to Create Nodes 1.5 summary 2. configparser module 4. shutil module 5. subprocess m ...

Posted by lakilevi on Sat, 12 Oct 2019 08:22:23 -0700

Spring Boot 2.X: MyBatis Multiple Data Source Configuration

Preface Mybatis multi data source configuration. Recently, in the construction of the project, a new business module needs to be expanded on the original system, and the database is specially divided into databases, so as to reduce the complexity. This article uses a simple code example to illustrate how to configure MyBatis multiple data sourc ...

Posted by ksp on Fri, 11 Oct 2019 20:51:11 -0700

Implementation of Android native PDF function

1, background Recently, the company hopes to achieve Android native PDF function, requirements: efficient and practical. After two days of research and coding, a simple Demo is implemented, as shown in the figure above. There are still many technical points about the realization of PDF function in Android's native end. In order to avoid detour ...

Posted by cschotch on Fri, 11 Oct 2019 17:52:07 -0700