current location:Home > Technical Articles > Backend Development
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- How to customize exclusive 404 page in Nginx
- The first: Nginx's own error page Nginx accesses a static html page. When this page does not exist, Nginx throws 404. So how to return 404 to the client? Look at the configuration below. In this case, there is no need to modify any parameters to achieve this function. server{listen80;server_namewww.test.com;root/var/www/test;indexindex.htmlindex.htm;location/{}#Define the error page code. If the corresponding error page code appears, forward it there. error_page404403500502503
- Nginx . tomcat 1862 2023-05-18 09:04:13
-
- What is SPI mechanism in Java
- 1: Introduction to the SPI mechanism. The full name of SPI is ServiceProviderInterface, which is a mechanism built into the JDK to dynamically load extension points. Through SPI technology, we can dynamically obtain the implementation class of the interface without creating it ourselves. This is not a special technology, just a design concept. 2: SPI principle JavaSPI is actually a dynamic loading mechanism implemented by a combination of interface-based programming + strategy mode + configuration files. There are often many different implementation solutions for various abstractions of system design. In object-oriented design, it is generally recommended that modules be programmed based on interfaces, and implementation classes should not be hard-coded between modules. Once the code involves specific implementation classes, it violates the principle of pluggability, such as
- javaTutorial . tomcat 3220 2023-05-17 23:40:55
-
- How to reverse proxy Nginx to Tomcat server
- In actual production, tomcat servers are generally not used alone in projects. Nginx performs better in responding to static resources. In addition, since nginx is a server specifically used for reverse proxy, it is easy to forward Java requests to the backend. The client is handed over to the tomcat container for processing, and it is used to process static resources. In nginx, a server{} block is often used to configure a relatively large project. Generally, it is all the configurations of a domain name. There are usually multiple configurations in a server block. location to define multiple request rules, such as domain name and root directory configuration, static resource support, phpfastcgi request, url rewriting, error page configuration and other configurations, so
- Nginx . tomcat 1505 2023-05-17 21:01:04
-
- How to implement Nginx reverse proxy forwarding tomcat
- Let’s talk about the forward proxy first. For example, if you want to access YouTube, but you cannot access it directly, you can only find a circumvention software first, and you can access YouTube through the circumvention software. The circumvention software is called a forward proxy. The so-called reverse proxy means that the user wants to access YouTube, but YouTube quietly hands over the request to bilibili, then bilibili is a reverse proxy. In the current tutorial, it refers to accessing nginx, but nginx hands the request to tomcat. Not much to say, you can access the corresponding interface up to ports 80 and 8080. Of course, you can also configure nginx.confvi in the conf folder under Nginx for the port you set.
- Nginx . tomcat 1179 2023-05-17 12:40:25
-
- How to implement Servlet in Java
- Web Basics and HTTP Protocol ┌─────────┐┌────────┐│░░░░░░░░░││O░░░░░░░│├─ ────────┤├─────────┤│░░░░░░░░░│││├────────┤│││░░░ ░░░░░░│└─────────┘└────────┘│request1││───────────────── ────>││request2││────────────────────>││response1││││response3││
- javaTutorial . tomcat 883 2023-05-17 11:34:50
-
- How to implement flower mall system in Java
- Project Introduction This project is a front-end and back-end project, divided into two roles: ordinary users and administrators. Ordinary users log in at the front desk, and administrators log in at the backend. The administrator role includes the following functions: administrator login, user management, flower category management, and flower management. , order management and delivery, message management, system announcement management and other functions. The user role includes the following functions: user homepage, user registration and login, view flower details, add to shopping cart, confirm order, view my order, mall message board, mall announcement and other functions. Environment requirements 1. Running environment: preferably javajdk1.8, we run on this platform. Other versions are theoretically possible. 2. IDE environment: IDEA, Eclipse, Myeclipse are all available. recommend
- javaTutorial . tomcat 1136 2023-05-17 11:31:14
-
- How nginx implements load balancing of multiple geoserver services
- Overview In order to improve the access speed of the service, reduce the pressure on the geoserver service, and avoid problems with service nodes that affect the stability of service access, we usually solve the problem by deploying multiple geoservers. However, after deploying multiple geoservers, we need a A unified interface is provided for use, and nginx can meet such needs very well. This article talks about how to achieve load balancing of multiple geoserver services through nginx. Implementation effect realization 1. Multi-geoserver deployment In order to keep the geoserver service consistent, we first configure a geoserver service. After configuring it, copy the deployed Tomcat and clone multiple ones.
- Nginx . tomcat 1434 2023-05-17 11:04:05
-
- TOMCAT cluster instance analysis under NGINX reverse proxy in LINUX
- nginx has features such as reverse proxy (note the difference between forward proxy and forward proxy) and load balancing. This time nginx is installed on the linux machine 192.168.1.108. To install nginx, you must first install the openssl library, gcc, pcre, zlib library, etc. Tomcat is installed on two machines, 192.168.1.168 and 192.168.1.178. The client accesses the project content deployed by tomcat in 192.168.1.168 and 192.168.1.178 by accessing the 192.168.1.108 reverse proxy. 1. Install nginx under linux (machine 192.168.1.108) and install ope
- Nginx . tomcat 899 2023-05-17 09:40:47
-
- nodejs java deployment
- With the development of Internet technology, more and more developers choose to use Node.js or Java to develop applications, but application deployment is also becoming more and more important. This article explains how to optimize performance and security when deploying Node.js and Java applications. 1. Deployment of Node.js applications Node.js is a very popular server-side JavaScript runtime environment that developers can use to develop efficient applications. Deploying a Node.js application
- Front-end Q&A . tomcat 450 2023-05-16 21:58:06
-
- How to use springboot packaging plug-in to remove jar packages and slim down
- 1. Pom file configuration 1.1 Add the maven-dependency-plugin plug-in to copy the referenced jar package to the specified path for subsequent tomcat startup to specify the dependency package path org.apache.maven.pluginsmaven-dependency-plugincopypackagecopy-dependencies${project. build.directory}/lib After using this plug-in to build the directory structure, there is an additional lib directory (that is, the path specified by the outputDirectory configured above), which contains the dependent jar package: 1.2s
- javaTutorial . tomcat 1166 2023-05-16 17:13:06
-
- tomcat cannot find javascript
- Tomcat is a web server written in Java and is often used to deploy Java web applications. JavaScript is a programming language that achieves dynamic interactive effects through a web browser. Under normal circumstances, Tomcat should be able to use JavaScript normally. But sometimes we may encounter the problem that JavaScript cannot be found. At this time, we need to solve this problem through some methods. 1. Confirm the file path. First, we need to confirm whether the file path is correct.
- Front-end Q&A . tomcat 447 2023-05-16 09:57:07
-
- How to Analyze Code Auditing in Java Web Security
- 1. JavaWeb Security Basics 1. What is code auditing? In layman’s terms, Java code auditing is to discover security issues in the Java application itself by auditing Java code. Since Java itself is a compiled language, even if there are only class files We can still audit Java code. For uncompiled Java source code files, we can read the source code directly, but for compiled class or jar files, we need to decompile them. Java code auditing itself is not very difficult. As long as you are proficient in the auditing process and common vulnerability auditing techniques, you can complete the code auditing work relatively easily. But the way of Java code auditing is not just to use
- Safety . tomcat 1805 2023-05-16 08:04:21
-
- How to solve the sql execution timeout of springboot configuration mybatis
- When some SQL is blocked due to unknown reasons, in order not to affect the running of the background service, you want to add an execution time limit to the SQL and throw an exception after the timeout to ensure that the background thread will not be blocked due to SQL congestion. 1. The yml global configuration can be used for a single data source, but it will fail when there are multiple data sources. 2. The java configuration class configuration successfully throws a timeout exception. importcom.alibaba.druid.pool.DruidDataSource;importcom.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder;importorg.apache.
- javaTutorial . tomcat 2888 2023-05-15 18:10:25
-
- Struts2 vulnerability S2-001 example analysis
- Vulhub vulnerability series: struts2 vulnerability S2-0011. Vulnerability description: struts2 vulnerability S2-001 is when the user submits form data and verification fails, the server uses OGNL expression to parse the parameter value previously submitted by the user, %{value} and refills the corresponding form data. For example, in a registration or login page. If the submission fails, the server will usually default to returning the previously submitted data. Since the server uses %{value} to perform OGNL expression parsing on the submitted data, the server can directly send the payload to execute the command. 2. Vulhub vulnerability exploitation: Using vulhub to reproduce vulnerabilities can save the environment construction process, which is very convenient. vu
- Safety . tomcat 1240 2023-05-15 15:58:14
-
- What is the implementation principle of SpringBoot automatic configuration?
- 1. What is springboot automatic configuration? SpringBoot turns on automatic configuration through the @EnableAutoConfiguration annotation and scans the spring.factories file under the jar package. This file contains classes that can be automatically configured. When the conditions specified by the @Condition annotation are met, It is instantiated with the support of dependencies and registered in the Spring container. Generally speaking, when we wrote the ssm project before, we configured a large number of coordinates and configuration content. The process of setting up the environment took up a lot of time in the project development. The biggest feature of SpringBoot is that it simplifies various xml configuration content, so sp
- javaTutorial . tomcat 5246 2023-05-15 15:58:06