'Change Spring boot folder structure for source code and resources
How can I change the path where spring boot is looking for the source code and resources.
I want to move from src/main to src/server/main.
In pom I put:
<build>
<resources>
<resource>
<directory>src/server/main/resources</directory>
</resource>
</build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<addResources>true</addResources>
<mainClass>ema.Application</mainClass>
</configuration>
</plugin>
</plugins>
Error:
Could not find or load main class ema.Application
Solution 1:[1]
Adding directory and source directory to my build fixed the issue;
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
<sourceDirectory>opc-ua/src/main</sourceDirectory>
<resources>
<resource>
<directory>opc-ua/src/main/resources</directory>
</resource>
</resources>
</build>
Solution 2:[2]
K-Means is very similar to Lloyd Max algorithm.
Since you give it x2 more bits there is no wonders it performs better.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ashu Singh |
| Solution 2 | Eric Johnson |
