此处我的错误异常如下:

Registered plugin: 'com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor@75c56eb9'
Property 'mapperLocations' was not specified.
 _ _   |_  _ _|_. ___ _ |    _ 
| | |\/|_)(_| | |_\  |_)||_|_\ 
     /               |         
                        3.4.1 
<2021-09-16 16:51:40.578> <SEVERE> Failed to destroy the filter named [cloud.crud.peng.CharacterFilter] of type [cloud.crud.peng.CharacterFilter]
 java.lang.AbstractMethodError
	at com.bes.enterprise.webtier.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:318)
	at com.bes.enterprise.webtier.core.CloudServletContext.filterStop(CloudServletContext.java:4675)
	at com.bes.enterprise.webtier.core.CloudServletContext.stopInternal(CloudServletContext.java:5475)
	at com.bes.enterprise.webtier.util.LifecycleBase.stop(LifecycleBase.java:240)
	at com.bes.enterprise.webtier.core.ContainerBase$StopChild.call(ContainerBase.java:1462)
	at com.bes.enterprise.webtier.core.ContainerBase$StopChild.call(ContainerBase.java:1451)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at com.bes.enterprise.util.threads.WorkThread$WrappingRunnable.run(WorkThread.java:61)
	at java.lang.Thread.run(Thread.java:748)

每个人报错原因可能不一样,本人此处,在测试环境运行时一切正常,在服务器部署中,启动该项目时抛出此异常。

开始以为是编译环境导致部署失败,后经过尝试,发现是打包问题,本项目的POM文件中使用了第三方jar,示例如下:

        <dependency>
            <groupId>dcloud</groupId>
            <artifactId>ServicePeng</artifactId>
            <version>2.0.3</version>
             <scope>system</scope>
            <systemPath>${project.basedir}/lib/peng-2.0.3.jar</systemPath>
        </dependency>

而在常规打包方式中,lib文件夹下面的jar包并没打进去,导致项目启动异常。

决绝方式有很多,懒人参考该链接

Logo

鸿蒙生态一站式服务平台。

更多推荐