您好,我在搭建Springboot分层项目完成后,在mini-api的src/main/java里面没有包和Application.java
来源:5-4 搭建Springboot分层项目

慕粉8237606
2020-12-21
[INFO] Scanning for projects…
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] 微信小程序-短视频实战 [pom]
[INFO] zdxh-video-dev-common [jar]
[INFO] zdxh-video-dev-pojo [jar]
[INFO] zdxh-video-dev-mapper [jar]
[INFO] zdxh-video-dev-service [jar]
[INFO] zdxh-video-dev-mini-api [jar]
[INFO]
[INFO] ----------------------< com.zdxh:zdxh-video-dev >-----------------------
[INFO] Building 微信小程序-短视频实战 0.0.1-SNAPSHOT [1/6]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] — maven-install-plugin:2.5.2:install (default-install) @ zdxh-video-dev —
[INFO] Installing D:\myWorkplays\zdxh-video-dev\pom.xml to D:\tools\repository\com\zdxh\zdxh-video-dev\0.0.1-SNAPSHOT\zdxh-video-dev-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] -------------------< com.zdxh:zdxh-video-dev-common >-------------------
[INFO] Building zdxh-video-dev-common 0.0.1-SNAPSHOT [2/6]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] — maven-resources-plugin:3.1.0:resources (default-resources) @ zdxh-video-dev-common —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 0 resource
[INFO]
[INFO] — maven-compiler-plugin:3.8.1:compile (default-compile) @ zdxh-video-dev-common —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-resources-plugin:3.1.0:testResources (default-testResources) @ zdxh-video-dev-common —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] — maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ zdxh-video-dev-common —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-surefire-plugin:2.22.2:test (default-test) @ zdxh-video-dev-common —
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.22.2/maven-surefire-common-2.22.2.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.22.2/maven-surefire-common-2.22.2.pom (11 kB at 1.5 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.22.2/surefire-api-2.22.2.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.22.2/surefire-api-2.22.2.pom (3.5 kB at 2.0 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-logger-api/2.22.2/surefire-logger-api-2.22.2.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-logger-api/2.22.2/surefire-logger-api-2.22.2.pom (2.0 kB at 1.7 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.22.2/surefire-booter-2.22.2.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.22.2/surefire-booter-2.22.2.pom (7.5 kB at 2.4 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.22.2/maven-surefire-common-2.22.2.jar
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.22.2/surefire-api-2.22.2.jar
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-logger-api/2.22.2/surefire-logger-api-2.22.2.jar
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.22.2/surefire-booter-2.22.2.jar
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-logger-api/2.22.2/surefire-logger-api-2.22.2.jar (13 kB at 632 B/s)
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.22.2/surefire-api-2.22.2.jar (186 kB at 3.1 kB/s)
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.22.2/surefire-booter-2.22.2.jar (274 kB at 4.0 kB/s)
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.22.2/maven-surefire-common-2.22.2.jar (528 kB at 1.4 kB/s)
[INFO]
[INFO] — maven-jar-plugin:3.2.0:jar (default-jar) @ zdxh-video-dev-common —
[INFO] Building jar: D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-common\target\zdxh-video-dev-common-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] — maven-install-plugin:2.5.2:install (default-install) @ zdxh-video-dev-common —
[INFO] Installing D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-common\target\zdxh-video-dev-common-0.0.1-SNAPSHOT.jar to D:\tools\repository\com\zdxh\zdxh-video-dev-common\0.0.1-SNAPSHOT\zdxh-video-dev-common-0.0.1-SNAPSHOT.jar
[INFO] Installing D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-common\pom.xml to D:\tools\repository\com\zdxh\zdxh-video-dev-common\0.0.1-SNAPSHOT\zdxh-video-dev-common-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] --------------------< com.zdxh:zdxh-video-dev-pojo >--------------------
[INFO] Building zdxh-video-dev-pojo 0.0.1-SNAPSHOT [3/6]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] — maven-resources-plugin:3.1.0:resources (default-resources) @ zdxh-video-dev-pojo —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 0 resource
[INFO]
[INFO] — maven-compiler-plugin:3.8.1:compile (default-compile) @ zdxh-video-dev-pojo —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-resources-plugin:3.1.0:testResources (default-testResources) @ zdxh-video-dev-pojo —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] — maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ zdxh-video-dev-pojo —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-surefire-plugin:2.22.2:test (default-test) @ zdxh-video-dev-pojo —
[INFO]
[INFO] — maven-jar-plugin:3.2.0:jar (default-jar) @ zdxh-video-dev-pojo —
[INFO] Building jar: D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-pojo\target\zdxh-video-dev-pojo-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] — maven-install-plugin:2.5.2:install (default-install) @ zdxh-video-dev-pojo —
[INFO] Installing D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-pojo\target\zdxh-video-dev-pojo-0.0.1-SNAPSHOT.jar to D:\tools\repository\com\zdxh\zdxh-video-dev-pojo\0.0.1-SNAPSHOT\zdxh-video-dev-pojo-0.0.1-SNAPSHOT.jar
[INFO] Installing D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-pojo\pom.xml to D:\tools\repository\com\zdxh\zdxh-video-dev-pojo\0.0.1-SNAPSHOT\zdxh-video-dev-pojo-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] -------------------< com.zdxh:zdxh-video-dev-mapper >-------------------
[INFO] Building zdxh-video-dev-mapper 0.0.1-SNAPSHOT [4/6]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] — maven-resources-plugin:3.1.0:resources (default-resources) @ zdxh-video-dev-mapper —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 0 resource
[INFO]
[INFO] — maven-compiler-plugin:3.8.1:compile (default-compile) @ zdxh-video-dev-mapper —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-resources-plugin:3.1.0:testResources (default-testResources) @ zdxh-video-dev-mapper —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] — maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ zdxh-video-dev-mapper —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-surefire-plugin:2.22.2:test (default-test) @ zdxh-video-dev-mapper —
[INFO]
[INFO] — maven-jar-plugin:3.2.0:jar (default-jar) @ zdxh-video-dev-mapper —
[INFO] Building jar: D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-mapper\target\zdxh-video-dev-mapper-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] — maven-install-plugin:2.5.2:install (default-install) @ zdxh-video-dev-mapper —
[INFO] Installing D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-mapper\target\zdxh-video-dev-mapper-0.0.1-SNAPSHOT.jar to D:\tools\repository\com\zdxh\zdxh-video-dev-mapper\0.0.1-SNAPSHOT\zdxh-video-dev-mapper-0.0.1-SNAPSHOT.jar
[INFO] Installing D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-mapper\pom.xml to D:\tools\repository\com\zdxh\zdxh-video-dev-mapper\0.0.1-SNAPSHOT\zdxh-video-dev-mapper-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] ------------------< com.zdxh:zdxh-video-dev-service >-------------------
[INFO] Building zdxh-video-dev-service 0.0.1-SNAPSHOT [5/6]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] — maven-resources-plugin:3.1.0:resources (default-resources) @ zdxh-video-dev-service —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources
[INFO]
[INFO] — maven-compiler-plugin:3.8.1:compile (default-compile) @ zdxh-video-dev-service —
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-service\target\classes
[INFO]
[INFO] — maven-resources-plugin:3.1.0:testResources (default-testResources) @ zdxh-video-dev-service —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] — maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ zdxh-video-dev-service —
[INFO] Changes detected - recompiling the module!
[INFO]
[INFO] — maven-surefire-plugin:2.22.2:test (default-test) @ zdxh-video-dev-service —
[INFO]
[INFO] — maven-jar-plugin:3.2.0:jar (default-jar) @ zdxh-video-dev-service —
[INFO] Building jar: D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-service\target\zdxh-video-dev-service-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] — maven-install-plugin:2.5.2:install (default-install) @ zdxh-video-dev-service —
[INFO] Installing D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-service\target\zdxh-video-dev-service-0.0.1-SNAPSHOT.jar to D:\tools\repository\com\zdxh\zdxh-video-dev-service\0.0.1-SNAPSHOT\zdxh-video-dev-service-0.0.1-SNAPSHOT.jar
[INFO] Installing D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-service\pom.xml to D:\tools\repository\com\zdxh\zdxh-video-dev-service\0.0.1-SNAPSHOT\zdxh-video-dev-service-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] ------------------< com.zdxh:zdxh-video-dev-mini-api >------------------
[INFO] Building zdxh-video-dev-mini-api 0.0.1-SNAPSHOT [6/6]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] — maven-resources-plugin:3.1.0:resources (default-resources) @ zdxh-video-dev-mini-api —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 0 resource
[INFO]
[INFO] — maven-compiler-plugin:3.8.1:compile (default-compile) @ zdxh-video-dev-mini-api —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-resources-plugin:3.1.0:testResources (default-testResources) @ zdxh-video-dev-mini-api —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] — maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ zdxh-video-dev-mini-api —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-surefire-plugin:2.22.2:test (default-test) @ zdxh-video-dev-mini-api —
[INFO]
[INFO] — maven-jar-plugin:3.2.0:jar (default-jar) @ zdxh-video-dev-mini-api —
[INFO] Building jar: D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-mini-api\target\zdxh-video-dev-mini-api-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] — maven-install-plugin:2.5.2:install (default-install) @ zdxh-video-dev-mini-api —
[INFO] Installing D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-mini-api\target\zdxh-video-dev-mini-api-0.0.1-SNAPSHOT.jar to D:\tools\repository\com\zdxh\zdxh-video-dev-mini-api\0.0.1-SNAPSHOT\zdxh-video-dev-mini-api-0.0.1-SNAPSHOT.jar
[INFO] Installing D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-mini-api\pom.xml to D:\tools\repository\com\zdxh\zdxh-video-dev-mini-api\0.0.1-SNAPSHOT\zdxh-video-dev-mini-api-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for 微信小程序-短视频实战 0.0.1-SNAPSHOT:
[INFO]
[INFO] 微信小程序-短视频实战 … SUCCESS [ 0.373 s]
[INFO] zdxh-video-dev-common … SUCCESS [06:29 min]
[INFO] zdxh-video-dev-pojo … SUCCESS [ 0.135 s]
[INFO] zdxh-video-dev-mapper … SUCCESS [ 0.101 s]
[INFO] zdxh-video-dev-service … SUCCESS [ 0.624 s]
[INFO] zdxh-video-dev-mini-api … SUCCESS [ 0.080 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:31 min
[INFO] Finished at: 2020-12-21T13:31:05+08:00
[INFO] ------------------------------------------------------------------------
2回答
-
这个文件去源码复制即可哈
052020-12-21 -
慕粉8237606
提问者
2020-12-21
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.3.7.RELEASE)
2020-12-21 14:25:45,622 [main] [org.springframework.boot.StartupInfoLogger.logStarting(StartupInfoLogger.java:55)] - [INFO] Starting Application on DESKTOP-RTKNCH5 with PID 9748 (D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-mini-api\target\classes started by 22401 in D:\myWorkplays\zdxh-video-dev\zdxh-video-dev-mini-api)
2020-12-21 14:25:45,624 [main] [org.springframework.boot.SpringApplication.logStartupProfileInfo(SpringApplication.java:651)] - [INFO] No active profile set, falling back to default profiles: default
2020-12-21 14:25:46,154 [main] [org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter.report(LoggingFailureAnalysisReporter.java:40)] - [ERROR]
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to bind properties under 'mapper.mappers' to java.util.List<java.lang.Class<?>>:
Property: mapper.mappers
Value: com.zdxh.utils.MyMapper
Origin: class path resource [application.properties]:29:16
Reason: No converter found capable of converting from type [java.lang.String] to type [java.util.List<java.lang.Class<?>>]
Action:
Update your application's configuration
00
相似问题