idea环境下,使用tomcat7-maven启动web项目时不重新编译

我更改了mybatis里面的sql语句但是clean , intall重启项目后还是运行的更新前的sql,清除缓存
也没有作用
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ store_webapp ---
[INFO] Nothing to compile - all classes are up to date
每次都是这样

3个回答

tomcat clean——maven clean—— maven insta——重启编译

把out目录里的内容删掉,让它重新编译。我用idea跑maven的项目,不用maven命令,正常改sql重启tomcat就可以啊。

已经解决了,因为我的是聚合项目,所以必须在根项目下clean、install

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
tomcat插件来部署hellowrld tomcat7-maven-plugin报错

我现在想用tomcat插件来部署hellowrld 先看下配置文件 一个maven插件tomcat如何安装tomcat7-maven-plugin 下面是配置文件 maven setting ![图片说明](https://img-ask.csdn.net/upload/201902/02/1549075712_250447.png) web.xml配置文件![图片说明](https://img-ask.csdn.net/upload/201902/02/1549075767_313533.png) pom.xml配置文件![图片说明](https://img-ask.csdn.net/upload/201902/02/1549075796_985173.png) tomcat-user插件的配置文件 ![图片说明](https://img-ask.csdn.net/upload/201902/02/1549075836_8253.png) eclipse工具报错

maven 依赖 用 tomcat7-maven插件 run运行时报错 求解决

tomcat7 用maven依赖插件 运行报错 //项目框架 spring+springmvc ![图片说明](https://img-ask.csdn.net/upload/201908/08/1565260003_595830.png) //目录结构 ![图片说明](https://img-ask.csdn.net/upload/201908/08/1565260208_492937.png) //web.xml ``` <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <display-name>ss1</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> <!-- SpringSecurity过滤器链 名字一定要叫做springSecurityFilterChain 是她内置的 --> <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> </filter> <filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <!--/*代表拦截所有资源--> <url-pattern>/*</url-pattern> </filter-mapping> <!-- 启动Spring --> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:applicationContext.xml classpath:spring-security.xml </param-value> </context-param> <!--启动SpringMVC--> <servlet> <servlet-name>ss1</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:springmvc.xml</param-value> </init-param> <!-- 服务器启动加载Servlet 默认第一次访问启动--> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>ss1</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> </web-app> ``` //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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>cn.ruanlam</groupId> <artifactId>02.spring-security</artifactId> <version>1.0-SNAPSHOT</version> <modules> <module>../02.springsecurity</module> </modules> <packaging>pom</packaging> <url>http://www.example.com</url> <properties> <jdk.version>1.8</jdk.version> <spring.version>4.3.10.RELEASE</spring.version> <spring.security.version>4.2.3.RELEASE</spring.security.version> <jstl.version>1.2</jstl.version> <servlet.version>2.5</servlet.version> </properties> <dependencies> <!-- Spring dependencies --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${spring.version}</version> </dependency> <!-- Spring Security --> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-web</artifactId> <version>${spring.security.version}</version> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-config</artifactId> <version>${spring.security.version}</version> </dependency> <!-- jstl for jsp page --> <dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId> <version>${jstl.version}</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>${servlet.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.9.5</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.6</version> <configuration> <skipTests>true</skipTests> </configuration> </plugin> <!-- jdk版本插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.2</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>UTF-8</encoding> <showWarnings>true</showWarnings> </configuration> </plugin> <!-- tomcat7插件 --> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <port>8080</port> <path>/ss1</path> <server>tomcat7</server> <uriEncoding>UTF-8</uriEncoding> </configuration> </plugin> </plugins> </build> </project> ``` //报错内容 ``` D:\career\Java\jdk1.8.0_152\bin\java.exe -Dmaven.multiModuleProjectDirectory=D:\career\workspaceTest\02.springsecurity -Dmaven.home=D:\career\Java\apache-maven-3.6.0 -Dclassworlds.conf=D:\career\Java\apache-maven-3.6.0\bin\m2.conf "-javaagent:D:\career\JetBrains\IntelliJ IDEA 2018.2.1\lib\idea_rt.jar=65491:D:\career\JetBrains\IntelliJ IDEA 2018.2.1\bin" -Dfile.encoding=UTF-8 -classpath D:\career\Java\apache-maven-3.6.0\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2018.2.1 -s D:\career\Java\apache-maven-3.6.0\conf\settings.xml org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Child module D:\career\workspaceTest\02.springsecurity\pom.xml of D:\career\workspaceTest\02.springsecurity\pom.xml forms aggregation cycle D:\career\workspaceTest\02.springsecurity\pom.xml -> D:\career\workspaceTest\02.springsecurity\pom.xml @ @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project cn.ruanlam:02.spring-security:1.0-SNAPSHOT (D:\career\workspaceTest\02.springsecurity\pom.xml) has 1 error [ERROR] Child module D:\career\workspaceTest\02.springsecurity\pom.xml of D:\career\workspaceTest\02.springsecurity\pom.xml forms aggregation cycle D:\career\workspaceTest\02.springsecurity\pom.xml -> D:\career\workspaceTest\02.springsecurity\pom.xml [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException Process finished with exit code 1 ``` //最终已解决 pom.xml 标签packaging里面改成war ``` <?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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>cn.ruanlam</groupId> <artifactId>02.spring-security</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war</packaging> <name>rVideos</name> <url>http://maven.apache.org</url> <properties> <jdk.version>1.8</jdk.version> <spring.version>4.3.10.RELEASE</spring.version> <spring.security.version>4.2.3.RELEASE</spring.security.version> <jstl.version>1.2</jstl.version> <servlet.version>2.5</servlet.version> </properties> <dependencies> <!-- Spring dependencies --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${spring.version}</version> </dependency> <!-- Spring Security --> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-web</artifactId> <version>${spring.security.version}</version> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-config</artifactId> <version>${spring.security.version}</version> </dependency> <!-- jstl for jsp page --> <dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId> <version>${jstl.version}</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>${servlet.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.9.5</version> </dependency> <!-- JSON lib 开发包 以及它的依赖包 --> <dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <classifier>jdk15</classifier> <version>2.4</version> </dependency> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <version>1.8.3</version> </dependency> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>3.2.1</version> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.6</version> </dependency> <dependency> <groupId>net.sf.ezmorph</groupId> <artifactId>ezmorph</artifactId> <version>1.0.5</version> </dependency> <!--mybaits相关依赖--> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.4.4</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis-spring</artifactId> <version>1.3.0</version> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.1.7</version> </dependency> <!--mysql的驱动--> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.41</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <!--jdbc依赖--> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.9.5</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>RELEASE</version> <scope>compile</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.6</version> <configuration> <skipTests>true</skipTests> </configuration> </plugin> <!-- jdk版本插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.2</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>UTF-8</encoding> <showWarnings>true</showWarnings> </configuration> </plugin> <!-- tomcat7插件 --> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.1</version> <configuration> <port>8080</port> <path>/ss2</path> <server>tomcat7</server> <uriEncoding>UTF-8</uriEncoding> </configuration> </plugin> </plugins> <!-- idea不会自动把xml配置文件加载到target里面--> <resources> <resource> <directory>${basedir}/src/main/resource</directory> <includes> <!--<include>**/*.xml</include>--> <include>**/*.*</include> </includes> </resource> </resources> <!-- <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.*</include> </includes> <excludes> <exclude>**/*.java</exclude> </excludes> </resource> </resources>--> </build> </project> ```

IDEA怎么配置tomcat以部署maven聚合web项目

1.聚合之前:idea配置tomcat后,会先将项目打包然后自动部署到本地的tomcat中,这个时候maven的workspace是这个web工程是没问题的 2.现在: war项目依赖前端项目的输出,maven-resources-plugin插件将后者输出的静态资源复制到 指定目录下,因此在前后端项目目录结构至上做了一个聚合项目(modules). 但是在配置tomcat的时候,我们只能选择部署子模块(package=war)的工程,idea也只会把这个子模块的 目录作为workSpace来mvn install,这样的话我之前的做的聚合相当于没有用.... 3.想问:如何让idea在打包时以聚合工程的目录作为workspace然后tomcat去读子模块输出的war包。能不能把这2步分开配置呀

maven插件启动tomcat7 不知名错误 求大牛

[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] taotao-manager [INFO] taotao-manager-pojo [INFO] taotao-manager-mapper [INFO] taotao-manager-service [INFO] taotao-manager-web [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building taotao-manager 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager --- [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager >>> [INFO] [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager <<< [INFO] [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager --- [INFO] Skipping non-war project [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building taotao-manager-pojo 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-pojo --- [INFO] Deleting C:\ec\taotao-manager\taotao-manager-pojo\target [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-pojo >>> [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-pojo --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-pojo --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-pojo <<< [INFO] [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-pojo --- [INFO] Skipping non-war project [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building taotao-manager-mapper 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-mapper --- [INFO] Deleting C:\ec\taotao-manager\taotao-manager-mapper\target [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-mapper >>> [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-mapper --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-mapper --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-mapper <<< [INFO] [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-mapper --- [INFO] Skipping non-war project [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building taotao-manager-service 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-service --- [INFO] Deleting C:\ec\taotao-manager\taotao-manager-service\target [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-service >>> [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-service --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-service --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-service <<< [INFO] [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-service --- [INFO] Skipping non-war project [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building taotao-manager-web 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-web --- [INFO] Deleting C:\ec\taotao-manager\taotao-manager-web\target [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] taotao-manager ..................................... SUCCESS [ 1.652 s] [INFO] taotao-manager-pojo ................................ SUCCESS [ 0.972 s] [INFO] taotao-manager-mapper .............................. SUCCESS [ 0.277 s] [INFO] taotao-manager-service ............................. SUCCESS [ 0.323 s] [INFO] taotao-manager-web ................................. FAILURE [ 1.283 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.948 s [INFO] Finished at: 2016-07-28T14:26:36+08:00 [INFO] Final Memory: 10M/24M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project taotao-manager-web: Failed to clean project: Failed to delete C:\ec\taotao-manager\taotao-manager-web\target\tomcat\logs\access_log.2016-07-28 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :taotao-manager-web

mac下的Idea中怎么在tomcat下运行maven项目

如标题,最近才使用Idea,那么在tomcat中,怎么可以运行maven项目呢。

maven没有报错tomcat也启动成功,但是不能访问localhost:8080,求大神指点

INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] xzytaotao-manager [INFO] xzytaotao-manager-pojo [INFO] xzytaotao-manager-dao [INFO] xzytaotao-manager-service [INFO] xzytaotao-manager-web [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building xzytaotao-manager 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ xzytaotao-manager --- [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) @ xzytaotao-manager >>> [INFO] [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) @ xzytaotao-manager <<< [INFO] [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ xzytaotao-manager --- [INFO] Skipping non-war project [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building xzytaotao-manager-pojo 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ xzytaotao-manager-pojo --- [INFO] Deleting M:\Myeclipseworkspaces\xzytaotao-manager\xzytaotao-manager-pojo\target [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) @ xzytaotao-manager-pojo >>> [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ xzytaotao-manager-pojo --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ xzytaotao-manager-pojo --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 22 source files to M:\Myeclipseworkspaces\xzytaotao-manager\xzytaotao-manager-pojo\target\classes [INFO] [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) @ xzytaotao-manager-pojo <<< [INFO] [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ xzytaotao-manager-pojo --- [INFO] Skipping non-war project [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building xzytaotao-manager-dao 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ xzytaotao-manager-dao --- [INFO] Deleting M:\Myeclipseworkspaces\xzytaotao-manager\xzytaotao-manager-dao\target [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) @ xzytaotao-manager-dao >>> [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ xzytaotao-manager-dao --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 11 resources [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ xzytaotao-manager-dao --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 11 source files to M:\Myeclipseworkspaces\xzytaotao-manager\xzytaotao-manager-dao\target\classes [INFO] [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) @ xzytaotao-manager-dao <<< [INFO] [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ xzytaotao-manager-dao --- [INFO] Skipping non-war project [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building xzytaotao-manager-service 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ xzytaotao-manager-service --- [INFO] Deleting M:\Myeclipseworkspaces\xzytaotao-manager\xzytaotao-manager-service\target [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) @ xzytaotao-manager-service >>> [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ xzytaotao-manager-service --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ xzytaotao-manager-service --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 14 source files to M:\Myeclipseworkspaces\xzytaotao-manager\xzytaotao-manager-service\target\classes [INFO] /M:/Myeclipseworkspaces/xzytaotao-manager/xzytaotao-manager-service/src/main/java/com/xzytaotao/service/impl/ItemParamItemServiceImpl.java: M:\Myeclipseworkspaces\xzytaotao-manager\xzytaotao-manager-service\src\main\java\com\xzytaotao\service\impl\ItemParamItemServiceImpl.java使用了未经检查或不安全的操作。 [INFO] /M:/Myeclipseworkspaces/xzytaotao-manager/xzytaotao-manager-service/src/main/java/com/xzytaotao/service/impl/ItemParamItemServiceImpl.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 [INFO] [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) @ xzytaotao-manager-service <<< [INFO] [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ xzytaotao-manager-service --- [INFO] Skipping non-war project [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building xzytaotao-manager-web 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ xzytaotao-manager-web --- [INFO] Deleting M:\Myeclipseworkspaces\xzytaotao-manager\xzytaotao-manager-web\target [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) @ xzytaotao-manager-web >>> [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ xzytaotao-manager-web --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 7 resources [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ xzytaotao-manager-web --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 8 source files to M:\Myeclipseworkspaces\xzytaotao-manager\xzytaotao-manager-web\target\classes [INFO] [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) @ xzytaotao-manager-web <<< [INFO] [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ xzytaotao-manager-web --- [INFO] Running war on http://localhost:8080/ [INFO] Creating Tomcat server configuration at M:\Myeclipseworkspaces\xzytaotao-manager\xzytaotao-manager-web\target\tomcat [INFO] create webapp with contextPath: 六月 04, 2017 9:48:09 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-8080"] 六月 04, 2017 9:48:09 下午 org.apache.catalina.core.StandardService startInternal 信息: Starting service Tomcat 六月 04, 2017 9:48:09 下午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.47 六月 04, 2017 9:48:13 下午 org.apache.catalina.core.ApplicationContext log 信息: No Spring WebApplicationInitializer types detected on classpath 六月 04, 2017 9:48:13 下午 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring root WebApplicationContext log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 运行我的聚合工程xzytaotao-manager. 命令:clean tomcat7:run,正常启动不报错,按照学习视频应该能访问http://localhost:8080然后访问index.jsp的但是却连不上,而且8080端口没有被占用,一直找不到运行,求大神指点一下小弟!

使用maven tomcat 插件 启动web 项目,报错,提示jar包冲突,但是不知道问题在哪里?

报错如下: 2016-6-6 17:31:07 org.apache.catalina.core.StandardWrapperValve invoke 严重: Servlet.service() for servlet jsp threw exception java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/jasper/servlet/JasperLoader) previously initiated loading for a different type with name "javax/servlet/http/HttpServletRequest" at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2436) at java.lang.Class.getDeclaredMethods(Class.java:1793) at org.apache.catalina.util.DefaultAnnotationProcessor.processAnnotations(DefaultAnnotationProcessor.java:226) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:148) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) pom.xml 如下: <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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>quchengming</groupId> <artifactId>helloWeb</artifactId> <version>1.0-SNAPSHOT</version> <packaging>war</packaging> <name>helloWeb</name> <properties> <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <!-- <dependencies> <dependency> <groupId>javax</groupId> <artifactId>javaee-web-api</artifactId> <version>6.0</version> <scope>provided</scope> </dependency> </dependencies> --> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.6</source> <target>1.6</target> <compilerArguments> <endorseddirs>${endorsed.dir}</endorseddirs> </compilerArguments> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.1.1</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> </configuration> </plugin> <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.1</version> <executions> <execution> <phase>validate</phase> <goals> <goal>copy</goal> </goals> <configuration> <outputDirectory>${endorsed.dir}</outputDirectory> <silent>true</silent> <artifactItems> <artifactItem> <groupId>javax</groupId> <artifactId>javaee-endorsed-api</artifactId> <version>6.0</version> <type>jar</type> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> --> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat6-maven-plugin</artifactId> <version>2.2</version> </plugin> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> </plugin> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> </plugin> </plugins> </build> <!-- http://tomcat.apache.org/maven-plugin-2.2/index.html --> <!--http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin --> </project>

IDEA创建maven的web项目,配置tomcat后可以发布,但浏览器报错404

**问题描述**:刚开始学习maven,在idea中使用模板创建了web maven项目后,可以使用maven自带的maven tomcat运行,并且浏览器正常 。但是使用网站下载下来的Tomcat配置在项目中后,虽然可以运行,但浏览器直接显示 404错误。 **下载的Tomcat运行后的信息**: G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51\bin\catalina.bat run [2020-02-17 12:39:19,204] Artifact ren:war exploded: Waiting for server connection to start artifact deployment... Using CATALINA_BASE: "C:\Users\Ren Yongchuang\.IntelliJIdea2018.1\system\tomcat\Unnamed_ren_5" Using CATALINA_HOME: "G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51" Using CATALINA_TMPDIR: "G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_181" Using CLASSPATH: "G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51\bin\bootstrap.jar;G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51\bin\tomcat-juli.jar" 17-Feb-2020 12:39:20.431 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.服务器版本: Apache Tomcat/8.5.51 17-Feb-2020 12:39:20.436 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器构建: Feb 5 2020 22:26:25 UTC 17-Feb-2020 12:39:20.436 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器版本号(:8.5.51.0 17-Feb-2020 12:39:20.436 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10 17-Feb-2020 12:39:20.437 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.版本: 10.0 17-Feb-2020 12:39:20.437 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 架构: amd64 17-Feb-2020 12:39:20.437 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 环境变量: C:\Program Files\Java\jdk1.8.0_181\jre 17-Feb-2020 12:39:20.437 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM 版本: 1.8.0_181-b13 17-Feb-2020 12:39:20.437 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.供应商: Oracle Corporation 17-Feb-2020 12:39:20.437 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\Ren Yongchuang\.IntelliJIdea2018.1\system\tomcat\Unnamed_ren_5 17-Feb-2020 12:39:20.438 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51 17-Feb-2020 12:39:20.438 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\Ren Yongchuang\.IntelliJIdea2018.1\system\tomcat\Unnamed_ren_5\conf\logging.properties 17-Feb-2020 12:39:20.439 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 17-Feb-2020 12:39:20.439 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote= 17-Feb-2020 12:39:20.439 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099 17-Feb-2020 12:39:20.439 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false 17-Feb-2020 12:39:20.440 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false 17-Feb-2020 12:39:20.440 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1 17-Feb-2020 12:39:20.440 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 17-Feb-2020 12:39:20.440 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 17-Feb-2020 12:39:20.440 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 17-Feb-2020 12:39:20.440 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\Ren Yongchuang\.IntelliJIdea2018.1\system\tomcat\Unnamed_ren_5 17-Feb-2020 12:39:20.441 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51 17-Feb-2020 12:39:20.442 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51\temp 17-Feb-2020 12:39:20.442 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.23] using APR version [1.7.0]. 17-Feb-2020 12:39:20.442 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 17-Feb-2020 12:39:20.442 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL配置:useAprConnector[false],useOpenSSL[true] 17-Feb-2020 12:39:20.449 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1c 28 May 2019] 17-Feb-2020 12:39:20.614 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["http-nio-8080"] 17-Feb-2020 12:39:20.632 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 17-Feb-2020 12:39:20.658 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 647 ms 17-Feb-2020 12:39:20.702 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina] 17-Feb-2020 12:39:20.702 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.51 17-Feb-2020 12:39:20.715 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["http-nio-8080"] 17-Feb-2020 12:39:20.727 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 68 ms Connected to server [2020-02-17 12:39:20,850] Artifact ren:war exploded: Artifact is being deployed, please wait... [2020-02-17 12:39:21,376] Artifact ren:war exploded: Artifact is deployed successfully [2020-02-17 12:39:21,376] Artifact ren:war exploded: Deploy took 526 milliseconds 17-Feb-2020 12:39:30.722 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51\webapps\manager] 17-Feb-2020 12:39:30.809 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [G:\Web\Tomcat\apache-tomcat-8.5.51-windows-x64\apache-tomcat-8.5.51\webapps\manager] has finished in [86] ms **配置页面** ![图片说明](https://img-ask.csdn.net/upload/202002/17/1581915221_525072.png) **运行后的结果** ![图片说明](https://img-ask.csdn.net/upload/202002/17/1581914498_959743.png)

idea maven插件启动,能访问页面打不开tomcat首页?

idea maven tomcat插件启动能访问页面,不能访问8080端口tomcat首页, 直接用tomcat启动全都访问,插件不能访问tomcat首页是什么原因。

idea+maven导入web项目后,tomcat无报错,无日志输出,启动失败,求大神!

![项目结构图](https://img-ask.csdn.net/upload/201604/23/1461396760_726616.png) 模块之间的依赖关系可以从这个pom中看出来![platform依赖business,core和web](https://img-ask.csdn.net/upload/201604/23/1461396817_519237.png) 把这三个子模块的编译结果都输出到platform的webapp\WEB-INF\classes,所依赖的jar包通过Maven也输出到webapp\WEB-INF\lib,![classes与lib](https://img-ask.csdn.net/upload/201604/23/1461396953_75610.png) 然后tomcate 这样配置的 ![idea+tomcate配置1](https://img-ask.csdn.net/upload/201604/23/1461396999_50044.png) ![idea+tomcate配置2](https://img-ask.csdn.net/upload/201604/23/1461397026_55676.png) 然后启动tomcate 无报错 无log 直接停止,真的太诡异了! ![无报错](https://img-ask.csdn.net/upload/201604/23/1461397082_343540.png) ![无报错](https://img-ask.csdn.net/upload/201604/23/1461397099_893396.png) ![localhost无Log](https://img-ask.csdn.net/upload/201604/23/1461397127_293200.png) ![catalina无log](https://img-ask.csdn.net/upload/201604/23/1461397160_210608.png) 大神们,帮帮忙!太感谢了!!!

Maven项目SSM整合后,tomcat可启动,但localhost:8080/无法访问

[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] taotao-manager [INFO] taotao-manager-pojo [INFO] taotao-manager-dao [INFO] taotao-manager-service [INFO] taotao-manager-web [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building taotao-manager 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager --- [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager >>> [INFO] [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager <<< [INFO] [INFO] [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager --- [INFO] Skipping non-war project [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building taotao-manager-pojo 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-pojo --- [INFO] Deleting E:\jdkandjre\workspace\taotao-manager\taotao-manager-pojo\target [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-pojo >>> [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-pojo --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-pojo --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 22 source files to E:\jdkandjre\workspace\taotao-manager\taotao-manager-pojo\target\classes [INFO] [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-pojo <<< [INFO] [INFO] [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-pojo --- [INFO] Skipping non-war project [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building taotao-manager-dao 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-dao --- [INFO] Deleting E:\jdkandjre\workspace\taotao-manager\taotao-manager-dao\target [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-dao >>> [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-dao --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 11 resources [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-dao --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 11 source files to E:\jdkandjre\workspace\taotao-manager\taotao-manager-dao\target\classes [INFO] [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-dao <<< [INFO] [INFO] [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-dao --- [INFO] Skipping non-war project [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building taotao-manager-service 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-service --- [INFO] Deleting E:\jdkandjre\workspace\taotao-manager\taotao-manager-service\target [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-service >>> [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-service --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-service --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 2 source files to E:\jdkandjre\workspace\taotao-manager\taotao-manager-service\target\classes [INFO] [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-service <<< [INFO] [INFO] [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-service --- [INFO] Skipping non-war project [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building taotao-manager-web 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-web --- [INFO] Deleting E:\jdkandjre\workspace\taotao-manager\taotao-manager-web\target [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-web >>> [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-web --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 6 resources [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-web --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to E:\jdkandjre\workspace\taotao-manager\taotao-manager-web\target\classes [INFO] [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-web <<< [INFO] [INFO] [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-web --- [INFO] Running war on http://localhost:8080/ [INFO] Creating Tomcat server configuration at E:\jdkandjre\workspace\taotao-manager\taotao-manager-web\target\tomcat [INFO] create webapp with contextPath: 十二月 08, 2017 8:56:30 上午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-8080"] 十二月 08, 2017 8:56:30 上午 org.apache.catalina.core.StandardService startInternal 信息: Starting service Tomcat 十二月 08, 2017 8:56:30 上午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.47 十二月 08, 2017 8:56:32 上午 org.apache.catalina.core.ApplicationContext log 信息: No Spring WebApplicationInitializer types detected on classpath 十二月 08, 2017 8:56:32 上午 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring root WebApplicationContext log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 黑马的淘淘商城项目,这以上是控制台消息,浏览器http://localhost:8080/一直画圈,无响应,请问这是怎么回事啊

maven插件tomcat7启动未成功,但没有报错

![图片说明](https://img-ask.csdn.net/upload/201803/18/1521355458_66982.png)

求解答,IDEA Maven项目Tomcat运行后404问题?

### 学校作业,第一堂课,让我们运行出一个Maven程序。 <br><br> **一开始是这个问题,** <br><br> ![图片说明](https://img-ask.csdn.net/upload/202004/22/1587570483_381095.png) <br><br> **而同学的有,** <br><br> ![图片说明](https://img-ask.csdn.net/upload/202004/22/1587570368_230122.png) <br> ![图片说明](https://img-ask.csdn.net/upload/202004/22/1587570388_323593.png) <br><br> **后来我解决了一下,但是添加进来的名字不一样(我也不知道这是不是正确的**)<br><br> ![图片说明](https://img-ask.csdn.net/upload/202004/22/1587570271_172788.png) <br> <br> **之后运行就是404问题**<br> <br> **以下是日志文件** <br><br> ``` C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\bin\catalina.bat run [2020-04-22 11:24:34,227] Artifact StudentManager-SSM2-1.0-SNAPSHOT.war: Waiting for server connection to start artifact deployment... Using CATALINA_BASE: "C:\Users\Acarier\.IntelliJIdea2019.1\system\tomcat\Unnamed_StudentManager-SSM2_4" Using CATALINA_HOME: "C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24" Using CATALINA_TMPDIR: "C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_231" Using CLASSPATH: "C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\bin\bootstrap.jar;C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\bin\tomcat-juli.jar" 22-Apr-2020 23:24:35.550 警告 [main] org.apache.catalina.core.AprLifecycleListener.init 基于APR的本地库加载失败.错误报告为[C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\bin\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform] java.lang.UnsatisfiedLinkError: C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\bin\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1086) at org.apache.tomcat.jni.Library.<init>(Library.java:42) at org.apache.tomcat.jni.Library.initialize(Library.java:206) at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:198) at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:107) at org.apache.catalina.connector.Connector.<init>(Connector.java:80) at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:64) at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1173) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1431) at org.apache.catalina.startup.Catalina.load(Catalina.java:566) at org.apache.catalina.startup.Catalina.load(Catalina.java:607) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:304) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474) 22-Apr-2020 23:24:35.643 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.服务器版本: Apache Tomcat/9.0.24 22-Apr-2020 23:24:35.643 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.构建: Aug 14 2019 21:16:42 UTC 22-Apr-2020 23:24:35.643 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.24.0 22-Apr-2020 23:24:35.643 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.版本: 10.0 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 结.造: amd64 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 环境变量: C:\Program Files\Java\jdk1.8.0_231\jre 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM 版本: 1.8.0_231-b11 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.供应商: Oracle Corporation 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\Acarier\.IntelliJIdea2019.1\system\tomcat\Unnamed_StudentManager-SSM2_4 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\Acarier\.IntelliJIdea2019.1\system\tomcat\Unnamed_StudentManager-SSM2_4\conf\logging.properties 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote= 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.password.file=C:\Users\Acarier\.IntelliJIdea2019.1\system\tomcat\Unnamed_StudentManager-SSM2_4\jmxremote.password 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.access.file=C:\Users\Acarier\.IntelliJIdea2019.1\system\tomcat\Unnamed_StudentManager-SSM2_4\jmxremote.access 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1 22-Apr-2020 23:24:35.644 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 22-Apr-2020 23:24:35.645 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 22-Apr-2020 23:24:35.645 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 22-Apr-2020 23:24:35.645 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\Acarier\.IntelliJIdea2019.1\system\tomcat\Unnamed_StudentManager-SSM2_4 22-Apr-2020 23:24:35.645 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24 22-Apr-2020 23:24:35.645 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\temp 22-Apr-2020 23:24:35.892 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["http-nio-8080"] 22-Apr-2020 23:24:35.910 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["ajp-nio-8009"] 22-Apr-2020 23:24:35.918 信息 [main] org.apache.catalina.startup.Catalina.load 服务器在[470]毫秒内初始化 22-Apr-2020 23:24:35.942 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina] 22-Apr-2020 23:24:35.942 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.24] 22-Apr-2020 23:24:35.953 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["http-nio-8080"] 22-Apr-2020 23:24:35.962 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["ajp-nio-8009"] 22-Apr-2020 23:24:35.964 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in [45] milliseconds Connected to server [2020-04-22 11:24:36,299] Artifact StudentManager-SSM2-1.0-SNAPSHOT.war: Artifact is being deployed, please wait... 23:24:42,173 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 23:24:42,174 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 23:24:42,177 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/C:/Users/Acarier/Tomcat/apache-tomcat-9.0.24/webapps/StudentManager_SSM2_1_0_SNAPSHOT_war/WEB-INF/classes/logback.xml] 23:24:42,386 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 23:24:42,400 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT] 23:24:42,419 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 23:24:42,552 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG 23:24:42,552 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT] 23:24:42,554 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration. 23:24:42,556 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@46cec746 - Registering current configuration as safe fallback point 23:24:42,102 |-INFO in ch.qos.logback.classic.servlet.LogbackServletContainerInitializer@306ac233 - Adding an instance of class ch.qos.logback.classic.servlet.LogbackServletContextListener to the current web-app 22-Apr-2020 23:24:42.774 信息 [RMI TCP Connection(5)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 22-Apr-2020 23:24:43.305 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'SpringMVC': initialization started 22-Apr-2020 23:24:43.385 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.context.support.XmlWebApplicationContext.prepareRefresh Refreshing WebApplicationContext for namespace 'SpringMVC-servlet': startup date [Wed Apr 22 23:24:43 CST 2020]; root of context hierarchy 22-Apr-2020 23:24:43.532 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from file [C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\webapps\StudentManager_SSM2_1_0_SNAPSHOT_war\WEB-INF\classes\spring-mvc.xml] 22-Apr-2020 23:24:44.085 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from file [C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\webapps\StudentManager_SSM2_1_0_SNAPSHOT_war\WEB-INF\classes\spring-mybatis.xml] 22-Apr-2020 23:24:44.741 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.context.support.PropertySourcesPlaceholderConfigurer.loadProperties Loading properties file from class path resource [jdbc.properties] 22-Apr-2020 23:24:44.760 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.<init> JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 23:24:45.001 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.logging.LogFactory - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter. 23:24:45.156 [MLog-Init-Reporter] INFO com.mchange.v2.log.MLog - MLog clients using slf4j logging. 23:24:45.188 [MLog-Init-Reporter] DEBUG com.mchange.v2.log.MLog - Reading VM config for path list /com/mchange/v2/log/default-mchange-log.properties, /mchange-commons.properties, /c3p0.properties, hocon:/reference,/application,/c3p0,/, /mchange-log.properties, / 23:24:45.188 [MLog-Init-Reporter] DEBUG com.mchange.v2.log.MLog - The configuration file for resource identifier '/mchange-commons.properties' could not be found. Skipping. 23:24:45.188 [MLog-Init-Reporter] DEBUG com.mchange.v2.log.MLog - The configuration file for resource identifier '/c3p0.properties' could not be found. Skipping. 23:24:45.188 [MLog-Init-Reporter] DEBUG com.mchange.v2.log.MLog - The configuration file for resource identifier 'hocon:/reference,/application,/c3p0,/' could not be found. Skipping. 23:24:45.188 [MLog-Init-Reporter] DEBUG com.mchange.v2.log.MLog - The configuration file for resource identifier '/mchange-log.properties' could not be found. Skipping. 23:24:45.192 [RMI TCP Connection(5)-127.0.0.1] DEBUG com.mchange.v2.cfg.MConfig - The configuration file for resource identifier '/mchange-commons.properties' could not be found. Skipping. 23:24:45.192 [RMI TCP Connection(5)-127.0.0.1] DEBUG com.mchange.v2.cfg.MConfig - The configuration file for resource identifier '/mchange-log.properties' could not be found. Skipping. 23:24:45.192 [RMI TCP Connection(5)-127.0.0.1] DEBUG com.mchange.v2.cfg.MConfig - The configuration file for resource identifier 'hocon:/reference,/application,/c3p0,/' could not be found. Skipping. 23:24:45.192 [RMI TCP Connection(5)-127.0.0.1] DEBUG com.mchange.v2.cfg.MConfig - The configuration file for resource identifier '/c3p0.properties' could not be found. Skipping. 23:24:45.307 [RMI TCP Connection(5)-127.0.0.1] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10] 23:24:45.359 [RMI TCP Connection(5)-127.0.0.1] DEBUG c.m.v.c.m.DynamicPooledDataSourceManagerMBean - MBean: com.mchange.v2.c3p0:type=PooledDataSource,identityToken=1hge0yua91932x55kb71fk|32540122,name=1hge0yua91932x55kb71fk|32540122 registered. 23:24:45.389 [RMI TCP Connection(5)-127.0.0.1] DEBUG c.m.v.c.m.DynamicPooledDataSourceManagerMBean - MBean: com.mchange.v2.c3p0:type=PooledDataSource,identityToken=1hge0yua91932x55kb71fk|32540122,name=1hge0yua91932x55kb71fk|32540122 unregistered, in order to be reregistered after update. 23:24:45.390 [RMI TCP Connection(5)-127.0.0.1] DEBUG c.m.v.c.m.DynamicPooledDataSourceManagerMBean - MBean: com.mchange.v2.c3p0:type=PooledDataSource,identityToken=1hge0yua91932x55kb71fk|32540122,name=1hge0yua91932x55kb71fk|32540122 registered. 23:24:45.560 [RMI TCP Connection(5)-127.0.0.1] DEBUG o.m.spring.SqlSessionFactoryBean - Property 'configuration' or 'configLocation' not specified, using default MyBatis Configuration 23:24:45.758 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.VFS - Class not found: org.jboss.vfs.VFS 23:24:45.758 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.JBoss6VFS - JBoss 6 VFS API is not available in this environment. 23:24:45.762 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.VFS - Class not found: org.jboss.vfs.VirtualFile 23:24:45.764 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.VFS - VFS implementation org.apache.ibatis.io.JBoss6VFS is not valid in this environment. 23:24:45.764 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.VFS - Using VFS adapter org.apache.ibatis.io.DefaultVFS 23:24:45.768 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Find JAR URL: file:/C:/Users/Acarier/Tomcat/apache-tomcat-9.0.24/webapps/StudentManager_SSM2_1_0_SNAPSHOT_war/WEB-INF/classes/cn/wmyskxz/entity/ 23:24:45.768 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Not a JAR: file:/C:/Users/Acarier/Tomcat/apache-tomcat-9.0.24/webapps/StudentManager_SSM2_1_0_SNAPSHOT_war/WEB-INF/classes/cn/wmyskxz/entity/ 23:24:45.789 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Reader entry: Student.class 23:24:45.791 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Listing file:/C:/Users/Acarier/Tomcat/apache-tomcat-9.0.24/webapps/StudentManager_SSM2_1_0_SNAPSHOT_war/WEB-INF/classes/cn/wmyskxz/entity/ 23:24:45.791 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Find JAR URL: file:/C:/Users/Acarier/Tomcat/apache-tomcat-9.0.24/webapps/StudentManager_SSM2_1_0_SNAPSHOT_war/WEB-INF/classes/cn/wmyskxz/entity/Student.class 23:24:45.791 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Not a JAR: file:/C:/Users/Acarier/Tomcat/apache-tomcat-9.0.24/webapps/StudentManager_SSM2_1_0_SNAPSHOT_war/WEB-INF/classes/cn/wmyskxz/entity/Student.class 23:24:45.792 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Reader entry: 漱壕 1 7 23:24:45.793 [RMI TCP Connection(5)-127.0.0.1] DEBUG org.apache.ibatis.io.ResolverUtil - Checking to see if class cn.wmyskxz.entity.Student matches criteria [is assignable to Object] 23:24:45.796 [RMI TCP Connection(5)-127.0.0.1] DEBUG o.m.spring.SqlSessionFactoryBean - Scanned package: 'cn.wmyskxz.entity' for aliases 22-Apr-2020 23:24:45.959 信息 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\webapps\manager] 22-Apr-2020 23:24:46.043 信息 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\webapps\manager] has finished in [85] ms 23:24:46.101 [RMI TCP Connection(5)-127.0.0.1] DEBUG o.m.spring.SqlSessionFactoryBean - Parsed mapper file: 'file [C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\webapps\StudentManager_SSM2_1_0_SNAPSHOT_war\WEB-INF\classes\mapper\StudengDao.xml]' 22-Apr-2020 23:24:46.641 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/addStudent]}" onto public java.lang.String cn.wmyskxz.controller.StudentController.addStudent(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 22-Apr-2020 23:24:46.644 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/editStudent]}" onto public org.springframework.web.servlet.ModelAndView cn.wmyskxz.controller.StudentController.editStudent(int) 22-Apr-2020 23:24:46.644 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/updateStudent]}" onto public java.lang.String cn.wmyskxz.controller.StudentController.updateStudent(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 22-Apr-2020 23:24:46.645 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/listStudent]}" onto public java.lang.String cn.wmyskxz.controller.StudentController.listStudent(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 22-Apr-2020 23:24:46.646 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/deleteStudent]}" onto public java.lang.String cn.wmyskxz.controller.StudentController.deleteStudent(int) 22-Apr-2020 23:24:47.659 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'SpringMVC-servlet': startup date [Wed Apr 22 23:24:43 CST 2020]; root of context hierarchy 22-Apr-2020 23:24:47.822 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'SpringMVC-servlet': startup date [Wed Apr 22 23:24:43 CST 2020]; root of context hierarchy 22-Apr-2020 23:24:47.961 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.registerHandler Mapped URL path [/**] onto handler 'org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0' 22-Apr-2020 23:24:48.284 信息 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'SpringMVC': initialization completed in 4979 ms [2020-04-22 11:24:48,347] Artifact StudentManager-SSM2-1.0-SNAPSHOT.war: Artifact is deployed successfully [2020-04-22 11:24:48,347] Artifact StudentManager-SSM2-1.0-SNAPSHOT.war: Deploy took 12,048 milliseconds C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\bin\catalina.bat stop Using CATALINA_BASE: "C:\Users\Acarier\.IntelliJIdea2019.1\system\tomcat\Unnamed_StudentManager-SSM2_4" Using CATALINA_HOME: "C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24" Using CATALINA_TMPDIR: "C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_231" Using CLASSPATH: "C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\bin\bootstrap.jar;C:\Users\Acarier\Tomcat\apache-tomcat-9.0.24\bin\tomcat-juli.jar" 22-Apr-2020 23:24:57.369 信息 [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance. 22-Apr-2020 23:24:57.369 信息 [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"] 22-Apr-2020 23:24:57.968 信息 [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"] 22-Apr-2020 23:24:58.569 信息 [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina] 22-Apr-2020 23:24:58.573 信息 [main] org.springframework.web.context.support.XmlWebApplicationContext.doClose Closing WebApplicationContext for namespace 'SpringMVC-servlet': startup date [Wed Apr 22 23:24:43 CST 2020]; root of context hierarchy 23:24:58,576 |-INFO in ch.qos.logback.classic.servlet.LogbackServletContextListener@7334b984 - About to stop ch.qos.logback.classic.LoggerContext [default] 22-Apr-2020 23:24:58.598 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"] 22-Apr-2020 23:24:58.599 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"] 22-Apr-2020 23:24:58.600 信息 [main] org.apache.coyote.AbstractProtocol.destroy 正在摧毁协议处理器 ["http-nio-8080"] 22-Apr-2020 23:24:58.600 信息 [main] org.apache.coyote.AbstractProtocol.destroy 正在摧毁协议处理器 ["ajp-nio-8009"] Disconnected from server ```

如何更改Idea中Maven项目Tomcat配置后WEBAPP位置

刚开始用IDEA发现创建一个普通Maven项目后,添加web项目,web的文件夹会在SRC外生成 作为一个强迫症我把它移到了src中并改名WEBAPP 在进行CSS美化时一直jquary not found报错 在输出目录里排查发现我创建在webapp下的JS那些文件夹都在contextpath外导致无法访问,只能手动复制进去,请问有没有办法让项目在部署时把位置放对。。![图片说明](https://img-ask.csdn.net/upload/201908/15/1565877743_715510.png)

maven项目下 tomcat:run 启动maven tomcat插件 什么都没报就停止了

![开启](https://img-ask.csdn.net/upload/201802/05/1517842707_607178.png) ![](https://img-ask.csdn.net/upload/201802/05/1517842274_196468.png) ![什么都没报就停止了](https://img-ask.csdn.net/upload/201802/05/1517842720_498765.png)

idea maven创建的web项目,在idea启动tomcat异常,直接启动tomcat正常

06-May-2020 20:05:21.476 信息 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 06-May-2020 20:05:21.616 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Error during ServletContainerInitializer processing org.apache.jasper.JasperException: XML parsing error on file [file:/E:/Projectext/WebProject/target/WebProject-1.0.0/WEB-INF/lib/jersey-server-1.9.jar] at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:324) at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:368) at org.apache.jasper.runtime.TldScanner.scanTld(TldScanner.java:600) at org.apache.jasper.runtime.TldScanner.scanJar(TldScanner.java:457) at org.apache.jasper.runtime.TldScanner.scanJars(TldScanner.java:694) at org.apache.jasper.runtime.TldScanner.scanTlds(TldScanner.java:350) at org.apache.jasper.runtime.TldScanner.onStartup(TldScanner.java:239) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5204) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1736) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:482) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:431) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468) at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309) at java.security.AccessController.doPrivileged(Native Method) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357) at sun.rmi.transport.Transport$1.run(Transport.java:200) at sun.rmi.transport.Transport$1.run(Transport.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:196) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.xml.sax.SAXException: Internal Error: File [/javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd] not found at org.apache.jasper.xmlparser.MyEntityResolver.resolveEntity(ParserUtils.java:568) at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java:110) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntityAsPerStax(XMLEntityManager.java:997) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1151) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1045) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:959) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339) at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:298) ... 52 more

求助:ssm的maven项目tomcat插件启动成功,但是无法访问的问题!

问题描述: springmvc+mybatis项目,tomcat插件成功启动后,访问报404的错误。 个人排查: 1.将其独立部署到tomcat服务器而不用tomcat插件可以成功启动并访问。 2.tomcat插件启动成功后,target下的classes目录下面没有配置文件,但是有class文件。buildpath中已经配置输出文件夹为target/classes,仍然无效。 tomcat插件配置: ``` <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <update>true</update> <!-- 热部署 --> <charset>utf-8</charset> <!-- 设置字符集 --> <uriEncoding>UTF-8</uriEncoding><!-- 设置uri编码 --> <port>8080</port> <!-- 设置端口 --> <path>/</path><!-- 设置默认访问应用的路径 --> </configuration> </plugin> </plugins> ``` 前端控制器配置: ``` <!-- 前端控制器 --> <!-- The front controller of this Spring Web application, responsible for handling all application requests --> <servlet> <servlet-name>springDispatcherServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>classpath*:springmvc/springmvc.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <!-- Map all requests to the DispatcherServlet for handling --> <servlet-mapping> <servlet-name>springDispatcherServlet</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> ``` controller: ``` @Controller public class UserController { @Autowired private UserService userService; @RequestMapping("/") public String hello() { return "index"; } @RequestMapping("/user") @ResponseBody public List<User> getUserList() { List<User> list = userService.getUserList(); return list; } } ``` 访问url:localhost:8080,正常应该跳转到index.jsp界面,实际输出:`No mapping found for HTTP request with URI [/] in DispatcherServlet with name 'springDispatcherServlet'`。 # 求助!!!

mvn tomcat:run启动项目运行显示的是BUILD SUCCESS没有启动tomcat

pom.xml如下: ``` <build> <plugins> <plugin> <!-- <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.3.20.v20170531</version> --> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> </plugin> </plugins> </build> ``` 使用mvn jetty:run没问题,屏蔽jetty后换成tomcat插件 换成mvn tomcat:run或mvn tomcat7:run 就只显示BUILD SUCCESS并没有启动tomcat ![图片说明](https://img-ask.csdn.net/upload/201706/22/1498100037_830106.jpg)

idea 引入maven项目发布到tomcat 访问页面无法加载css js 图片

这是我在github上引入的一个maven项目 这是项目中的webapp下面的路径 ![图片说明](https://img-ask.csdn.net/upload/201610/11/1476179953_650507.png) 这是我发布的路径 ![图片说明](https://img-ask.csdn.net/upload/201610/11/1476179982_866713.png) idea是通过虚拟路径的形式发布到tomcat上的,我发布的根目录,localhost:8080可以直接访问,但是前端无法加载js css 图片 ![图片说明](https://img-ask.csdn.net/upload/201610/11/1476180078_766042.png) 怎么加载不出来,怎么解决啊,求大神指教,谢谢!

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

Intellij IDEA 实用插件安利

1. 前言从2020 年 JVM 生态报告解读 可以看出Intellij IDEA 目前已经稳坐 Java IDE 头把交椅。而且统计得出付费用户已经超过了八成(国外统计)。IDEA 的...

搜狗输入法也在挑战国人的智商!

故事总是一个接着一个到来...上周写完《鲁大师已经彻底沦为一款垃圾流氓软件!》这篇文章之后,鲁大师的市场工作人员就找到了我,希望把这篇文章删除掉。经过一番沟通我先把这篇文章从公号中删除了...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

魂迁光刻,梦绕芯片,中芯国际终获ASML大型光刻机

据羊城晚报报道,近日中芯国际从荷兰进口的一台大型光刻机,顺利通过深圳出口加工区场站两道闸口进入厂区,中芯国际发表公告称该光刻机并非此前盛传的EUV光刻机,主要用于企业复工复产后的生产线扩容。 我们知道EUV主要用于7nm及以下制程的芯片制造,光刻机作为集成电路制造中最关键的设备,对芯片制作工艺有着决定性的影响,被誉为“超精密制造技术皇冠上的明珠”,根据之前中芯国际的公报,目...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

百度工程师,获利10万,判刑3年!

所有一夜暴富的方法都写在刑法中,但总有人心存侥幸。这些年互联网犯罪高发,一些工程师高技术犯罪更是引发关注。这两天,一个百度运维工程师的案例传遍朋友圈。1...

程序员为什么千万不要瞎努力?

本文作者用对比非常鲜明的两个开发团队的故事,讲解了敏捷开发之道 —— 如果你的团队缺乏统一标准的环境,那么即使勤劳努力,不仅会极其耗时而且成果甚微,使用...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《Oracle Java SE编程自学与面试指南》最佳学习路线图2020年最新版(进大厂必备)

正确选择比瞎努力更重要!

字节跳动面试官竟然问了我JDBC?

轻松等回家通知

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

实时更新:计算机编程语言排行榜—TIOBE世界编程语言排行榜(2020年6月份最新版)

内容导航: 1、TIOBE排行榜 2、总榜(2020年6月份) 3、本月前三名 3.1、C 3.2、Java 3.3、Python 4、学习路线图 5、参考地址 1、TIOBE排行榜 TIOBE排行榜是根据全世界互联网上有经验的程序员、课程和第三方厂商的数量,并使用搜索引擎(如Google、Bing、Yahoo!)以及Wikipedia、Amazon、YouTube统计出排名数据。

立即提问
相关内容推荐