为了学习 Spring,我创建了一个非常小的项目,并使用 Gradle 成功构建。然后我能够使用 .war 成功运行生成的 .war java -jar UserSettingController.war
,得到 Spring 消息:
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.1.0.BUILD-SNAPSHOT)
接下来,我想把它从 Tomcat 移到 Websphere Liberty。所以,天真地,我将 .war 文件从我的 project/build/libs/ 复制到适当的dropins
文件夹,然后启动 Liberty 服务器。那时,我在 Libertyconsole.log
中看到的不是Spring标志,而是以下内容:
[WARNING ] CWWKC0044W: An exception occurred while scanning class and annotation data. The exception was java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at [internal classes]
.
[WARNING ] CWWKC0044W: An exception occurred while scanning class and annotation data. The exception was java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at [internal classes]
.
[WARNING ] CWWKC0044W: An exception occurred while scanning class and annotation data. The exception was java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at [internal classes]
.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://ui15-lin.utopusinsights.com:9080/UserSettingController/
[AUDIT ] CWWKZ0001I: Application UserSettingController started in 4.829 seconds.
[AUDIT ] CWWKF0012I: The server installed the following features: [jsp-2.2, servlet-3.1, ssl-1.0, jndi-1.0, websocket-1.0, json-1.0, localConnector-1.0, adminCenter-1.0, distributedMap-1.0, jaxrs-1.1, restConnector-1.0].
[AUDIT ] CWWKF0011I: The server defaultServer is ready to run a smarter planet.
我的问题是:这些[Warning]
重要吗?如果是这样,有什么问题?或者应用程序实际上是否通过 Web 服务器进行侦听,如果是,它正在侦听哪个端口(8080?)?