mvn clean install with console-在jenkins szerver作业目录中:
....
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:02.841s
[INFO] Finished at: Mon Oct 13 15:16:35 CEST 2014
[INFO] Final Memory: 38M/363M
[INFO] ------------------------------------------------------------------------
mvn clean install with jenkins作业:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.269s
[INFO] Finished at: Mon Oct 13 15:17:46 CEST 2014
[INFO] Final Memory: 27M/242M
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project rtt-backend: Compilation failure: Compilation failure:
[ERROR] /var/lib/jenkins/workspace/NewRTT_BackEnd/src/main/java/hu/test/rtt/backend/login/LoginController.java:[9,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
我检查文件所有权,检查日志等等。
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
....
[Demo backend - Poll] $ /usr/lib/jvm/java-8-oracle/bin/java -cp /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.5.jar:/usr/share/maven/boot/plexus-classworlds-2.x.jar org.jvnet.hudson.maven3.agent.Maven3Main /usr/share/maven /var/cache/jenkins/war/WEB-INF/lib/remoting-2.46.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.5.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.5.jar 47998
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven: -B -f /var/lib/jenkins/workspace/Demo backend - Poll/pom.xml clean install -Pdev,skipDBTests
[INFO] Scanning for projects...
[HUDSON] Collecting dependencies info
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building rtm-backend 0.1.9
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ rtm-backend ---
[INFO] Deleting file set: /var/lib/jenkins/workspace/Demo backend - Poll/target (included: [**], excluded: [])
[INFO]
[INFO] --- maven-dependency-plugin:2.1:copy (default) @ rtm-backend ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (default) @ rtm-backend ---
[INFO] argLine set to "-javaagent:/var/lib/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.7.2.201409121644/org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=/var/lib/jenkins/workspace/Demo backend - Poll/target/jacoco.exec"
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ rtm-backend ---
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ rtm-backend ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] Copying 2 resources
[INFO] Copying 9 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ rtm-backend ---
[INFO] Compiling 138 source files to /var/lib/jenkins/workspace/Demo backend - Poll/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/reportitems/ReportItemsController.java:[11,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/reportitems/ReportItemsController.java:[13,1] error: cannot find symbol
[ERROR] class RestController
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/reportmembers/ReportMembersController.java:[10,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/reportmembers/ReportMembersController.java:[12,1] error: cannot find symbol
[ERROR] class RestController
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/tracking/TrackingController.java:[31,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/tracking/TrackingController.java:[33,1] error: cannot find symbol
[ERROR] class RestController
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/trackingmetadatas/TrackingMetadatasController.java:[11,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/trackingmetadatas/TrackingMetadatasController.java:[13,1] error: cannot find symbol
[ERROR] class RestController
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/time/TimeController.java:[13,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/time/TimeController.java:[19,1] error: cannot find symbol
[ERROR] class RestController
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/projects/ProjectsController.java:[11,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/projects/ProjectsController.java:[13,1] error: cannot find symbol
[ERROR] class RestController
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/heartbeat/HeartbeatController.java:[6,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/heartbeat/HeartbeatController.java:[8,1] error: cannot find symbol
[ERROR] class RestController
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/login/LoginController.java:[9,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/login/LoginController.java:[11,1] error: cannot find symbol
[ERROR] class RestController
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/users/UsersController.java:[14,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/users/UsersController.java:[16,1] error: cannot find symbol
[ERROR] class RestController
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/modreqs/ModReqController.java:[25,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/modreqs/ModReqController.java:[31,1] error: cannot find symbol
[ERROR] class RestController
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/reportparts/ReportPartsController.java:[11,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/reportparts/ReportPartsController.java:[13,1] error: cannot find symbol
[ERROR] class RestController
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/reports/ReportsController.java:[21,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
/var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/reports/ReportsController.java:[23,1] error: cannot find symbol
[INFO] 24 errors
[INFO] -------------------------------------------------------------
Collecting metadata...
Metadata collection done.
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.033s
[INFO] Finished at: Mon Oct 13 16:07:55 CEST 2014
[INFO] Final Memory: 26M/246M
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project rtm-backend: Compilation failure: Compilation failure:
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/reportitems/ReportItemsController.java:[11,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/reportitems/ReportItemsController.java:[13,1] error: cannot find symbol
[ERROR] class RestController
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/reportmembers/ReportMembersController.java:[10,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/reportmembers/ReportMembersController.java:[12,1] error: cannot find symbol
[ERROR] class RestController
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/tracking/TrackingController.java:[31,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/tracking/TrackingController.java:[33,1] error: cannot find symbol
[ERROR] class RestController
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/trackingmetadatas/TrackingMetadatasController.java:[11,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/trackingmetadatas/TrackingMetadatasController.java:[13,1] error: cannot find symbol
[ERROR] class RestController
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/time/TimeController.java:[13,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/time/TimeController.java:[19,1] error: cannot find symbol
[ERROR] class RestController
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/projects/ProjectsController.java:[11,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/projects/ProjectsController.java:[13,1] error: cannot find symbol
[ERROR] class RestController
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/heartbeat/HeartbeatController.java:[6,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/heartbeat/HeartbeatController.java:[8,1] error: cannot find symbol
[ERROR] class RestController
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/login/LoginController.java:[9,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/login/LoginController.java:[11,1] error: cannot find symbol
[ERROR] class RestController
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/users/UsersController.java:[14,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/users/UsersController.java:[16,1] error: cannot find symbol
[ERROR] class RestController
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/modreqs/ModReqController.java:[25,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/modreqs/ModReqController.java:[31,1] error: cannot find symbol
[ERROR] class RestController
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/reportparts/ReportPartsController.java:[11,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/reportparts/ReportPartsController.java:[13,1] error: cannot find symbol
[ERROR] class RestController
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/reports/ReportsController.java:[21,46] error: cannot find symbol
[ERROR] package org.springframework.web.bind.annotation
[ERROR] /var/lib/jenkins/workspace/Demo backend - Poll/src/main/java/demo/rtm/backend/reports/ReportsController.java:[23,1] error: cannot find symbol
[ERROR] -> [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/MojoFailureException
[JENKINS] Archiving /var/lib/jenkins/workspace/Demo backend - Poll/pom.xml to demo.rtm/rtm-backend/0.1.9/rtm-backend-0.1.9.pom
Sending e-mails to: test@mail.com
channel stopped
Skipping Cobertura coverage report as build was not SUCCESS or better ...
[htmlpublisher] Archiving HTML reports...
Performance: No threshold configured for making the test failure
Performance: No threshold configured for making the test unstable
Collecting metadata...
Metadata collection done.
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Finished: FAILURE
<?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>demo.rtm</groupId>
<artifactId>rtm-backend</artifactId>
<version>0.1.9</version>
<packaging>war</packaging>
<name>rtm-backend</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
<application.logdir>${user.home}/logs/rtm</application.logdir>
<tomcat.deploy>true</tomcat.deploy>
<security.headerKey>RTM_LOGIN_TOKEN</security.headerKey>
<build.time>${maven.build.timestamp}</build.time>
<maven.build.timestamp.format>yyyy.MM.dd. HH:mm</maven.build.timestamp.format>
<application.logdir.base>/home/demo/logs/rtm</application.logdir.base>
</properties>
<dependencies>
<dependency>
<groupId>dmeo</groupId>
<artifactId>demo-common</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.3.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kubek2k</groupId>
<artifactId>springockito</artifactId>
<version>1.0.9</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.10-FINAL</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.10-FINAL</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
<version>3.10-FINAL</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<database.location>localhost</database.location>
<database.port>3306</database.port>
<database.dbname>rtm</database.dbname>
<tomcat.host>localhost:8080</tomcat.host>
<tomcat.username>tomcat</tomcat.username>
<tomcat.password>tomcat</tomcat.password>
<doDBTests>true</doDBTests>
<war.moduleName>DEVELOPMENT</war.moduleName>
<war.path>rtm-backend</war.path>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>src/main/resources/devspecific/rtm-settings.${user.name}.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<finalName>${war.path}</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>devspecific</exclude>
<exclude>devspecific/**</exclude>
<exclude>db_scripts</exclude>
<exclude>db_scripts/**</exclude>
<exclude>**/*.xls</exclude>
<exclude>**/*.xlsx</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>**/*.xls</include>
<include>**/*.xlsx</include>
</includes>
</resource>
<resource>
<directory>src/main/webapp/WEB-INF</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.2.201409121644</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</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>
<webResources>
<resource>
<directory>src/main/webapp/WEB-INF/</directory>
<targetPath>WEB-INF</targetPath>
<includes>
<include>web.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/webapp/META-INF/</directory>
<targetPath>META-INF</targetPath>
<includes>
<include>context.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</webResources>
<warName>${war.path}</warName>
</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.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.9</version>
<configuration>
<container>
<containerId>tomcat8x</containerId>
<type>remote</type>
</container>
<skip>${!tomcat.deploy}</skip>
<configuration>
<type>runtime</type>
<properties>
<cargo.remote.uri>http://${tomcat.host}/manager/text</cargo.remote.uri>
<cargo.remote.username>${tomcat.username}</cargo.remote.username>
<cargo.remote.password>${tomcat.password}</cargo.remote.password>
<context>${war.path}</context>
</properties>
</configuration>
<deployer>
<type>remote</type>
</deployer>
<deployables>
<deployable>
<properties>
<context>${war.path}</context>
</properties>
</deployable>
</deployables>
</configuration>
</plugin>
</plugins>
</build>
</project>
我也面临同样的问题,就像Maximilian Wollnik一样,我的解决方案是正确设置环境变量:
echo$JAVA_HOME/usr/java/jdk1.8.0_60/
管理Jenkins>全局属性>环境变量
我刚刚在wildfly 12服务器上学习ejb remote。我已使用jboss ejb客户端在同一台计算机上成功连接到ejb。使用localhost访问同一JVM时的属性(工作示例): 当我尝试使用127.0.0.1而不是localhost访问同一个ejb时,它等待了很长时间,没有显示任何错误,也没有发生任何事情。这是JBossEJB客户端。使用127.0.0.1在同一JVM上访问服务器时的属性
我有一个与[JasperReport参数在iReport中工作但在JasperServer上失败]帖子中描述的问题非常相似的问题。 报告在iReport环境中使用预览选项正常工作,但在JasperReports服务器中失败 注释表明iReport没有在JR服务器中创建InputControl。因此,我验证了服务器包含正确的InputControl(这显然解决了他们的问题)。 输入控件称为sk串行选
问题内容: 我有一个在独立模式下运行的Flask服务器(使用)。但是,我不需要控制台中的任何消息,例如 如何禁用详细模式? 问题答案: 你可以将Werkzeug记录器的设置级别设置为ERROR,在这种情况下,仅记录错误:
嗨,我用spring初始化器创建了一个简单的Spring Boot应用程序。我在主应用程序类的同一文件夹中添加了一个控制器。 这是给我以下错误的网址http://localhost:8080/welcome 此应用程序没有针对/错误的显式映射,因此您将其视为回退。 Sat Dec 19 12:51:44 IST 2020出现意外错误(类型=未找到,状态=404)。 如果我使用@restContro
编辑:我的解决方案,某种程度上。在本例中,我解析的是专门以美国为中心的NOAA预测。因此,我攻击了我自己的zoneid.of(“mdt”)以映射到17个时区的偏移量:https://www.timetemperature.com/abbreviations/united_states_time_zone_abbreviations.shtml 我隐约感到肮脏和羞愧,但这个特定的日期解析器是特定于这