Article Tags
Home Technical Articles Backend Development
How to use Nginx to forward port 80 to port 8080 on Mac

How to use Nginx to forward port 80 to port 8080 on Mac

Environment macos version: 10.12.6nginx version: 1.12.1 Installation The author uses homebrew to install the library brewsearchnginxbrewinstallnginx. After installing it like this, you will find that the listening port of nginx is 8080, not 80, so at this time you need to change the listening port of nginx, then this One step is very critical and cannot be changed in the traditional way. Readers please read this part carefully. Since macos comes with its own apache service, it occupies port 80. First, you need to change the listening port of apache to another one or uninstall it directly. The author changed its listening port to 8011. Command Line

May 11, 2023 pm 09:49 PM
Mac nginx
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

May 11, 2023 pm 08:25 PM
SpringBoot jar nginx
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

May 11, 2023 pm 08:19 PM
Linux
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.

May 11, 2023 pm 05:10 PM
SpringBoot jar weblogic
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

May 11, 2023 pm 04:40 PM
SpringBoot
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

May 11, 2023 pm 01:46 PM
SpringBoot tomcat
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

May 11, 2023 am 11:37 AM
SpringBoot jar lib
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

May 11, 2023 am 10:58 AM
Java 云服务器
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.

May 11, 2023 am 09:25 AM
SpringBoot
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

May 11, 2023 am 08:55 AM
SpringBoot
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

May 10, 2023 pm 07:13 PM
SpringBoot mybatis
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"%

May 10, 2023 pm 06:16 PM
SpringBoot tomcat access_log
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

May 10, 2023 pm 06:10 PM
SpringBoot
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

May 10, 2023 pm 02:55 PM
Java jdk logging

Hot tools Tags

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)

vc9-vc14 (32+64 bit) runtime library collection (link below)

Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit

VC9 32-bit

VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version

PHP programmer toolbox full version

Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit

VC11 32-bit

VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use