一、运行环境
1、tomcat-apache-tomcat-8.5.50
2、jdk1.8.0_121
3. windows 10 64位操作系统,
注意:首先要将jdk和tomcat 环境配置好,点击 CATALINA_HOME/bin/startup.bat 文件,可以正常看到tomcat 环境启动了,就OK!
二、运行环境
1、apache-maven-3.6.1
2、idea 2019.1
3、springboot 2.2.4.RELEASE
4、mysql
贴上的 pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.lagou.kingcasa</groupId>
<artifactId>cluster_web_works</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>cluster_web_works</name>
<description>Demo project for Spring Boot</description>
<!-- jdk 的编译级别,一定要与tomcat所在的服务器环境级别一致-->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source&g