“unable to locate Spring NamespaceHandler” error

前端 未结 5 717
后悔当初
后悔当初 2020-12-09 17:26

I\'m creating a stand-alone Sava application with Spring, to handle the JDBC access. The application works fine on every test and I decided that I need a jar to be deployed

5条回答
  •  爱一瞬间的悲伤
    2020-12-09 18:05

    In addition to the solution posted by @GrampaJohn, I also had to make sure that I was packaging the required libraries into the generated JAR file instead of extracting them into the generated JAR.

    In Eclipse Mars, after making changes to the pom.xml (added maven-shade plugin as suggested by @GrampaJohn), follow the steps:

    File -> Export -> Select Java folder -> Runnable JAR File -> enter the Launch configuration (main file), export destination, and in Library Handling, select "Package required Libraries into generated JAR -> Click finish

    .

提交回复
热议问题