current location:Home > Technical Articles > Backend Development

  • Nginx reverse proxy springboot jar package source code analysis
    Nginx reverse proxy springboot jar package source code analysis
    Example 1: server{listen80;server_name127.0.0.1;access_loglogs/book.log;error_loglogs/book.error;#Forward the /wx-service request to http://127.0.0.1:8011/wx-service processing location /wx-service{proxy_set_headerhost$host;proxy_set_headerx-forwarded-for$proxy_add_x_forwarded_for;prox
    javaTutorial . tomcat 1144 2023-05-11 20:25:21
  • What is the directory where linux software is installed?
    What is the directory where linux software is installed?
    There are two main locations for Linux software installation: 1. "/opt" directory, which is a directory for installing additional software on the host. It is a user-level program directory, which is often used to place additional large-scale software; 2. "/ The "usr/local" directory is a user-level program directory under "/usr". Software installed by users generally chooses to install it in this directory. Linux software installation There are two main installation locations under Linux, which are the /opt directory and the /usr/local directory. /opt directory opt is the abbreviation of optional. This is the directory where additional software is installed on the host. It is a user-level program directory and is empty by default. This is often used to place extra
    Linux Operation and Maintenance . tomcat 5595 2023-05-11 20:19:24
  • How to resolve jar package conflicts when deploying springboot to weblogic
    How to resolve jar package conflicts when deploying springboot to weblogic
    Background: In a certain project, the customer required to use the existing weblogic to deploy the developed springboot, so some configuration adjustments were made to springboot, mainly including removing the tomcat dependency and adding startup class processing. It usually goes smoothly, but in fact there are always some minor problems. Question 1: When the package is released to weblogic and started, the error shown in the figure below: It can be easily judged from the exception content that this is an error caused by a jar package conflict. After locating, weblogic has a directory wls12213\oracle_common\modules\thirdparty, which stores some third-party default jar packages.
    javaTutorial . tomcat 1706 2023-05-11 17:10:06
  • How SpringBoot implements multiple file uploads
    How SpringBoot implements multiple file uploads
    1.代码结构:2.Controller层packagecom.yqifei.upload.controller;importio.swagger.annotations.Api;importorg.springframework.web.bind.annotation.*;importorg.springframework.web.multipart.MultipartFile;importjavax.servlet.http.HttpServletRequest;importjava.io.F
    javaTutorial . tomcat 3574 2023-05-11 16:40:06
  • How to configure SpringBoot integrated Tomcat service architecture
    How to configure SpringBoot integrated Tomcat service architecture
    1. The lower the cost of Tomcat integration, the more complex the internal encapsulation is. 1. Dependency level In the web dependency package of the SpringBoot framework, embedded Tomcat components are introduced. Based on the SpringBoot version, Tomcat integrates version 9.0; org.springframework .bootspring-boot-starter-web2.2.5.RELEASEorg.springframework.bootspring-boot-starter-tomcat2.2.5.RELEASEcompileorg.apache.tomcat.em
    javaTutorial . tomcat 1649 2023-05-11 13:46:14
  • How to introduce local dependency jar package into springboot project and package it into lib folder
    How to introduce local dependency jar package into springboot project and package it into lib folder
    Preface: At work, I encountered a Javaweb project built with the SpringBoot framework that needed to integrate third-party push functions, so I used the Xiaomi push service and downloaded the relevant jar package. Introducing local jars into the project is not a big problem. After writing the code, it is no problem to pass the test class test. Then prepare to package and deploy to the development server. Since the project is deployed through tomcat, the packaging method is into a war package. After packaging, upload it to the development server. After successful startup, I went to test the written push interface and found that it failed. Through analysis, it was found that the lib directory in the packaged war where the project's dependent jars are stored does not contain locally introduced push-related jar packages. After struggling for half an hour, the problem was solved. solve
    javaTutorial . tomcat 4129 2023-05-11 11:37:13
  • How to deploy Java projects to cloud servers
    How to deploy Java projects to cloud servers
    1. When purchasing a cloud server and installing the system, you usually choose which operating system to install. I usually use CentOS, either 6.x or 7.x. 2. Installing the Pagoda Panel is the same on any server, but different operating systems may have different commands. 1. The account and password for ssh connection to the server are usually set when purchasing the server, and can be modified later. If ssh cannot connect, make sure port 22 is allowed. 2. Type the installation command Centos installation script yuminstall-ywget&&wget-Oinstall.shhttp://download.bt.cn/install/install_6
    javaTutorial . tomcat 2081 2023-05-11 10:58:24
  • How to solve the problems of SpringBoot official website construction and quick startup
    How to solve the problems of SpringBoot official website construction and quick startup
    SpringBoot Overview SpringBoot is a new framework provided by the Pivotal team. It is designed to simplify the initial construction and development process of Spring applications. Everyone has experienced the SpringBoot program. Let's look back and see what the main function of SpringBoot is, which is to simplify the Spring construction and development process. The original Spring environment construction and development has the following problems: cumbersome configuration and cumbersome dependency settings. The advantage of the SpringBoot program happens to be automatic configuration for the shortcomings of Spring. This is used to solve the problem of complicated Spring program configuration and starting dependencies. This is used to solve the cumbersome Spring program dependency settings.
    javaTutorial . tomcat 1646 2023-05-11 09:25:05
  • How to implement the commodity purchase, sale and inventory management system based on Springboot
    How to implement the commodity purchase, sale and inventory management system based on Springboot
    1. Project Introduction This project implements a purchase, sales and inventory management system based on springboot. The main user manages the purchase, sales and inventory of related products in online stores. The functions are relatively complete and have a complete authority management system, which can be used as needed. Design roles and assign permissions. The granularity of permissions can achieve page-level permission control, which is excellent for the entire project. The main functions implemented are as follows: Basic management module: includes three sub-modules: customer management, supplier management, and product management. Purchase management module: includes several sub-blocks of product purchase, return, and product return query. Sales management: includes product sales. , returns, sales returns inquiry and several sub-block system management: including department management, menu management, authority management, role management
    javaTutorial . tomcat 857 2023-05-11 08:55:13
  • How to configure mybatis and transaction management in springboot
    How to configure mybatis and transaction management in springboot
    1. Configuration of springboot and mybatis 1. First, all the dependencies required by springboot to configure mybatis are as follows: org.springframework.bootspring-boot-starter-parent1.5.1.RELEASEorg.springframework.bootspring-boot-starter-web1.5.1.RELEASEorg. mybatis.spring.bootmybatis-spring-boot-starter1.2.0com.oracleojdbc
    javaTutorial . tomcat 1228 2023-05-10 19:13:22
  • How SpringBoot configures tomcat access_log log
    How SpringBoot configures tomcat access_log log
    Configure the tomcat accesslog log in the configuration file application.yml: server:port:80tomcat:accesslog:enabled:truedirectory:D:\Documents\D_code related\J_java\sprintboot_studyprefix:tomcat_access_logsuffix:.logfile-date-format:-yyyy- MM-ddpattern:'%{X-Real-IP}i-%{Host}i%t"%
    javaTutorial . tomcat 1935 2023-05-10 18:16:06
  • What is the SpringBoot startup principle?
    What is the SpringBoot startup principle?
    Entry version: 2.1.8.RELEASE Startup code: @SpringBootApplcationpublicstaticvoidmain(String[]args){SpringApplication.run(BlogAdminApplication.class,args);System.out.println("========adminstartsuccess... ==========");} Two parameters are passed in here, the current class of BlogAdminApplication and the args parameter we click
    javaTutorial . tomcat 1116 2023-05-10 18:10:13
  • How to deal with the java underlying JDK Logging module
    How to deal with the java underlying JDK Logging module
    Starting from the example, the use of JDKLogging is very simple. As shown in the following code, you can first use the static method getLogger of the Logger class to obtain a logger, and then you can use the obtained logger for log input anywhere. For example, calls like logger.info("Mainrunning."). packagecom.bes.logging;importjava.util.logging.Level;importjava.util.logging.Logger;publicclassLoggerTest{pr
    javaTutorial . tomcat 1313 2023-05-10 14:55:06
  • How to package a Java or Java Web project into a JAR package or WAR package
    How to package a Java or Java Web project into a JAR package or WAR package
    1. Why Packaging There are different opinions on this issue on the Internet. Based on personal understanding and online opinions, it is packaged as a jar package for the convenience of others. If you are running a java program, you do not need to look for the class containing the main method to execute; if you are using a third-party jar package, import the jar package directly into your own project instead of copying a bunch of class files. Building a war package is the web application deployment method chosen in real production environments. It is said online that this method will not cause file loss like directly copying folders, and the server will optimize the application, such as deleting empty folders, etc. The above is for information only. 2. How to package the local environment windows10, jdk1.8 into jar or war package using the same tool jdk
    javaTutorial . tomcat 2009 2023-05-07 10:25:17
  • How to use Dockerfile to create an image of the java running environment
    How to use Dockerfile to create an image of the java running environment
    The environment currently used is: centos7.5docker-ce18.06.1-ce1. First use the basic image of centos7.5.1804 to install some environments required for operation and create the corresponding file directory in the /app directory [root@node2/app /]#mkdirdockerfile/{web/{nginx,tomcat,jdk,apache},system/{centos,ubuntu,redhat}}-pv[root@node2/app]#cddockerfile/system/centos/[root@node2/app /do
    javaTutorial . tomcat 2318 2023-05-05 13:49:13

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28