IDEAL integration jFINAL problem

1. mavne jetty-server can find jar package in IDEAL but report class not found error

<!-- <dependency> 
<groupId>com.jfinal</groupId>
<artifactId>jetty-server</artifactId>
<version>8.1.8</version>
<scope>compile</scope>
</dependency>- ->
Remove the maven configuration and manually import the jetty-server8.1.8.jar package to solve the problem

2. In IDEA's maven project, the xml and other resource files in the default source code directory will not be packaged into the classes folder when compiling, but is directly discarded.
The solution can be solved by adding in pom.xml
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
</build>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325021609&siteId=291194637