Several ways to quickly read file contents in SpringBoot
Introduction: In a SpringBoot-built project, in some cases, you need to read some file contents on your own. How can you read the file contents in a quick and easy way?(
Read based on ApplicationContext
How to get an ApplicationContext refe ...
Posted by rolajaz on Sun, 01 Sep 2019 19:17:22 -0700
JAVA state micro-service intrusion link tracking
Intrusion Link Tracking APM with Pinpoint
I. Intrusion Link Tracking APM
Application Performance Management (APM)It means to monitor and optimize the key business of an enterprise, to improve the reliability and quality of its business, to ensure that its customers receive good service, to reduce the total cost of IT operation and maintenance, ...
Posted by ladokha on Mon, 26 Aug 2019 00:14:30 -0700
MySQL Learning Notes 3
MySQL Learning Notes 3
Label (Space Separation): Note MySQL
Multi-table join query
Internal links
Through INNER JOIN... ON keyword implementation
Specific grammar:
SELECT field1,field2,...fieldn from table_name INNER JOIN join_table ON join_co ...
Posted by slshmily on Thu, 22 Aug 2019 04:05:42 -0700
SpringBoot Built-in tomcat Startup Principle
Preface
SpringBoot developers have to say that they are working for the benefit of popular programming apes, making everyone used to being lazy, xml is not configured, even tomcat is lazy to configure, a typical one-button boot system, then how does tomcat start in spring boot?
Built-in tomcat
The built-in tomcat is quite enough for us a ...
Posted by mazzzzz on Tue, 20 Aug 2019 01:54:13 -0700
Tomcat Source Code Analysis--Tomcat Startup Process
When it comes to starting Tomcat, we all know that we need to run the tomcat/bin/startup.sh script every time, and what exactly is the content of the script? Let's have a look.
Start script
startup.sh script
#!/bin/sh
os400=false
case "`uname`" in
OS400*) os400=true;;
esac
# resolve links - $0 may be a softlink
PRG="$0"
while [ ...
Posted by Fritz on Fri, 16 Aug 2019 02:45:17 -0700
Implementation of session sharing redis for TOMCAT hot deployment
JAVA-web Program Tomcat Container Publishing and Conventional Operation
1. Warpackage Publishing
1.1 Place the completed war package directly to% TOMCAT_HOME%/webapps/
1.2 Modify% TOMCAT_HOME%/conf/server.xml to add nodes to the host node
doc ...
Posted by locomotive on Thu, 15 Aug 2019 23:34:43 -0700
Tomcat Source Code Analysis--Tomcat Class Loader
Before looking at tomcat class loading, let's review or consolidate java's default class loader. The landlord used to be ignorant about class loading, so he took this opportunity to review it well.
The landlord opened the second edition of the magic book "Deep Understanding of Java Virtual Machine", p227, about the class loader. See: ...
Posted by Mark Nordstrom on Thu, 15 Aug 2019 00:58:09 -0700
web Common Object 02
Session
Effect
Identify a session, or confirm a user, and share data during a session (multiple requests from a user).Obtain
The request.getSession() method creates objects without sessions, or obtains session objects for the current session.Method
getId() - Get the session identifier
getCreationTime() ...
Posted by benjudy on Tue, 13 Aug 2019 02:37:54 -0700
Deploy java project within 4 k8s
One is to create nfs (maste node operation, two node nodes also need to be installed)
1 First install an nfs server and configure the shared directory.
[yx@tidb-tidb-02 ~]$ cat /etc/exports
/home/yx/hnf *(rw,no_root_squash)
//Then start nfs
2 Then create a dynamic feed of NFS PV on master, requiring three files, class.yaml deployment.yaml rba ...
Posted by tom2oo8 on Sat, 10 Aug 2019 11:22:46 -0700
servlet learning notes: the architecture of servlet
Articles Catalogue
1. Overall structure
2. Common methods
2.1 Servlet Common Methods
2.2 Generic Servlet common methods
Common methods of 2.3Http Servlet
3.Servlet life cycle (important)
3.1 Define a class `LifeServlet'`
3.2 HTML page
3.3web.xml
3.4 Observations
3.5 Summary
4.url-pattern configur ...
Posted by Ilyes on Sat, 10 Aug 2019 05:08:09 -0700