Spring MVC [data write back and exception handling]
Article directory
Data back writing
Default mode
Through Model mode
Book.java
HelloController.java
book.jsp
springmvc.xml
web.xml
@ModelAttribute annotation implementation
Modify parameter echo variable name
Configure global variable names
exception handling
Exception handler
errors.jsp
Data back writing
Data up ...
Posted by AZDoc on Sun, 24 Nov 2019 21:44:33 +0100
Integrating Spring and Spring MVC
1. The relationship between spring container and spring MVC container
Spring container is a parent container, and spring MVC container is a child container, which inherits from spring container. Therefore, in the spring MVC container, you can access the beans defined in the spring container, while in the spring container, you cannot access the ...
Posted by jfugate on Sun, 24 Nov 2019 15:36:31 +0100
RocketMQ -- environment configuration
Let's first go to / etc/hosts to add information
vim /etc/hosts
Add the following information:
Pass apache-rocketmq.tar.gz to / usr/local/software through XFTP tool
Then add / usr / local / Apache rocketmq directory, and extract Apache rocketmq.tar.gz to this directory
[root@bogon apache-rocketmq]# mkdir /usr/local ...
Posted by maniac1aw on Sat, 23 Nov 2019 22:08:11 +0100
Android custom control (entry level) - digital display
demand
1. The number is 1 digit and the circle is displayed 2. The number is 2-digit drawing stretch, left and right semicircles 3. If the number is greater than 999, 999 will be displayed+ 4. Custom text color, custom background color
Effect (well, it looks low)
It's not complicated, but it's good as a calculation problem
1. Custom attri ...
Posted by oni-kun on Sat, 23 Nov 2019 21:39:10 +0100
About five different onClick events
In the development, the onclick event of the button is often used to do some operations. The android onclick event is usually used in five ways. This paper takes android Toast as an example
First, we create a new project and add a button in the view activity main.xml file. The code is as follows:
<?xml version="1.0" enc ...
Posted by andy2006 on Fri, 22 Nov 2019 21:36:42 +0100
Intent in Android is simple and practical (jump page)
1. Intent can jump to another page and carry corresponding data or not. Here are several common methods of intent
2. Including using Intent to explicitly start another Activity and implicitly start another Activity
① to explicitly start another Activity with Intent, you need to configure the Activity to jump in AndroidManifes ...
Posted by matjaz on Fri, 22 Nov 2019 16:55:41 +0100
SpringBoot Source Parsing----- Spring Boot Core Competence - How does SpringBoot implement SpringMvc?
In the previous article, we talked about the starting process of Tomcat in SpringBoot, and then we talked about how to add Servlet, Filter, Listener to Tomcat in SpringBoot
Customize Servlet, Filter, Listener
Declare ServletRegistrationBean, FilterRegistrationBean, ServletListenerRegistrationBean in Spring container
@Bean
public ServletRegistr ...
Posted by TheChief on Fri, 22 Nov 2019 04:40:43 +0100
Spring cloud fegin and rabbot implement microservices respectively
The previous article wrote the first way to implement microservice architecture, and now the second way is still a fool
First blog link https://blog.csdn.net/qq_41684939/article/details/89602525
This is based on the last blog post
The registration center can see in the previous article
fegin implementation of microservice archit ...
Posted by cfemocha on Thu, 21 Nov 2019 20:55:49 +0100
MQTT protocol performance test: use jmeter+ant+emqx to test and generate test report
preparation:
1) install jdk and configure environment variables. Please search for specific steps by yourself
2) install jmeter3.1 and above
3) jmeter installs the mqtt plug-in: Mqtt xmeter - [required version] - jar-with-dependencies.jar , put it in the EXT folder of JMeter installation directory (for example, F:\testPro\ap ...
Posted by jimmyt1988 on Tue, 19 Nov 2019 20:55:58 +0100
Python crawler crawls girls' pictures and downloads them in batches (you know ~)
1. Project introduction
This project uses the program provided by Python + the use of selectors in the graph (quite easy to use) to realize crawling the picture of the girl graph (welfare graph). I have learned that the paw (2, 10) of a certain durian is right!
2. Knowledge points used
① Python Programming (I use version 3.7 ...
Posted by craigh on Tue, 19 Nov 2019 19:36:13 +0100