springboot+maven+tomcat+Tencent Cloud Server to build your own server

Server configuration

  1. Go to Tencent Cloud (Alibaba Cloud purchases servers and domain names and records them, the server uses centos system)
  2. The server container uses tomcat, and the SSL   certificate is installed and the https certificate installation guide
  3. Install Xshell and Xftp, configuration is omitted
  4. Solution to java.net.UnknownHostException when a domain name cannot be resolved

SpringBoot project

  1. Create a SpringBoot project in the idea environment
  2. Self-check SpringBoot comments and file directory structure
  3. Maven adds third-party jar packages into the local maven library
  4. How to configure and implement cross-domain requests under SpringBoot
  5. Import the Log4j package and develop a good habit of outputting logs to facilitate bug inspection
  6.  Cancel the dependency of tomcat in the pom.xml file, package SpringBoot into a war file and rename it to ROOT.war, then directly deploy to tomcat's webapps, restart tomcat

Guess you like

Origin blog.csdn.net/qq_20176001/article/details/79783449