錯誤1
idea Unable to load class 'org.gradle.api.internal.plugins.DefaultConvention'
這個錯誤是idea中的某個插件和gradle的版本不兼容,如果不改配置文件需要更新idea,我是用的idea2018,如果改配置文件該下面兩個配置文件,其實就是更改gradle的版本爲4.10.
錯誤2
run.halo.app.exception.ThemePropertyMissingException: C:\Users\12783\.halo\templates\themes\anatole 沒有說明文件
這個是因爲我把.halo目錄刪除了,再次啓動報的錯誤,發現主題目錄是空的。。。然後去下載了一個主題放裏面
錯誤3
2020-03-30 21:30:52.399 WARN 222768 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.RuntimeException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'adminAuthenticationFilter' defined in file [D:\workspace\halo\out\production\classes\run\halo\app\security\filter\AdminAuthenticationFilter.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'haloConfiguration': Unsatisfied dependency expressed through field 'buildProperties'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.boot.info.BuildProperties' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
2020-03-30 21:30:52.408 INFO 222768 --- [ restartedMain] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-03-30 21:30:52.522 ERROR 222768 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Field buildProperties in run.halo.app.config.HaloConfiguration required a bean of type 'org.springframework.boot.info.BuildProperties' that could not be found.
The following candidates were found but could not be injected:
- Bean method 'buildProperties' in 'ProjectInfoAutoConfiguration' not loaded because @ConditionalOnResource did not find resource '${spring.info.build.location:classpath:META-INF/build-info.properties}'
Action:
Consider revisiting the entries above or defining a bean of type 'org.springframework.boot.info.BuildProperties' in your configuration.
Process finished with exit code 0
這個問題不知道爲啥…,最後找到的解決方案是:
第一步:bulid這個地方一下
會生成一個這個東西
然後直接啓動這個地方(下圖紅框)
就沒有報錯了,項目正常啓動。
歡迎關注公衆號:理木客