elunez / eladmin

eladmin jpa 版本:项目基于 Spring Boot 2.6.4、 Jpa、 Spring Security、Redis、Vue的前后端分离的后台管理系统,项目采用分模块开发方式, 权限控制采用 RBAC,支持数据字典与数据权限管理,支持一键生成前后端代码,支持动态路由
https://eladmin.vip/demo
Apache License 2.0
21.19k stars 7.34k forks source link

#395号问题没解决,eladmin-logging模块仍然报错'me.zhengjie.service.mapstruct.LogErrorMapper' that could not be found. #396

Closed liuyang77886 closed 4 years ago

liuyang77886 commented 4 years ago

按照文档,增加 jdt_apt</m2e.apt.activation> eladmin-system生成了mapstruct类,这个解决了, 但是eladmin-logging模块eladmin\eladmin-logging\target\generated-sources\annotations有目录但是目录下为空

   _                 _           _
  | |               | |         (_)

| |__ __ | | / _ | |__/ ` |/ | '_ | | ' \ | | | | (| | (| | | | | | | | | | | _|| _,_|\,|| || |||| |_|

:: Spring Boot :: (v2.1.0.RELEASE) 2020-06-10 07:20:42.690 me.zhengjie.AppRun (Starting AppRun on DESKTOP-DOMO0RN with PID 18000 (G:\workspaces_cms\eladmin\eladmin\eladmin-system\target\classes started by Administrator in G:\workspaces_cms\eladmin\eladmin\eladmin-system) 2020-06-10 07:20:42.692 me.zhengjie.AppRun (The following profiles are active: dev 2020-06-10 07:20:44.505 org.springframework.data.repository.config.RepositoryConfigurationDelegate (Multiple Spring Data modules found, entering strict repository configuration mode! 2020-06-10 07:20:44.507 org.springframework.data.repository.config.RepositoryConfigurationDelegate (Bootstrapping Spring Data repositories in DEFAULT mode. 2020-06-10 07:20:44.871 org.springframework.data.repository.config.RepositoryConfigurationDelegate (Finished Spring Data repository scanning in 357ms. Found 23 repository interfaces. 2020-06-10 07:20:45.352 org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker (Bean 'asyncTaskProperties' of type [me.zhengjie.config.thread.AsyncTaskProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2020-06-10 07:20:45.353 org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker (Bean 'asyncTaskExecutePool' of type [me.zhengjie.config.thread.AsyncTaskExecutePool$$EnhancerBySpringCGLIB$$aa8ddf12] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2020-06-10 07:20:45.454 org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker (Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$b8526fc3] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2020-06-10 07:20:45.618 org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker (Bean 'redisConfig' of type [me.zhengjie.config.RedisConfig$$EnhancerBySpringCGLIB$$d17ab5db] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2020-06-10 07:20:45.669 org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker (Bean 'org.springframework.security.config.annotation.configuration.ObjectPostProcessorConfiguration' of type [org.springframework.security.config.annotation.configuration.ObjectPostProcessorConfiguration$$EnhancerBySpringCGLIB$$510037fd] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2020-06-10 07:20:45.677 org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker (Bean 'objectPostProcessor' of type [org.springframework.security.config.annotation.configuration.AutowireBeanFactoryObjectPostProcessor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2020-06-10 07:20:45.679 org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker (Bean 'org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler@67332b1e' of type [org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2020-06-10 07:20:45.680 org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker (Bean 'org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration' of type [org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration$$EnhancerBySpringCGLIB$$75d4daaf] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2020-06-10 07:20:45.691 org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker (Bean 'methodSecurityMetadataSource' of type [org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2020-06-10 07:20:47.011 org.springframework.boot.web.embedded.tomcat.TomcatWebServer (Tomcat initialized with port(s): 8000 (http) 2020-06-10 07:20:47.025 org.apache.coyote.http11.Http11NioProtocol (Initializing ProtocolHandler ["http-nio-8000"] 2020-06-10 07:20:47.033 org.apache.catalina.core.StandardService (Starting service [Tomcat] 2020-06-10 07:20:47.034 org.apache.catalina.core.StandardEngine (Starting Servlet Engine: Apache Tomcat/9.0.12 2020-06-10 07:20:47.045 org.apache.catalina.core.AprLifecycleListener (The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [E:\code\jdk1.8.0_181\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;E:/code/jdk1.8.0_251/jre8/bin/server;E:/code/jdk1.8.0_251/jre8/bin;E:/code/jdk1.8.0_251/jre8/lib/amd64;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\libnvvp;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\IDM Computer Solutions\UltraEdit;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;d:\Program Files\Git\cmd;E:\pfile\OpenSSL-Win64\bin;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;J:\javasoft\sonar\sonar-scanner-2.5\bin;C:\Program Files (x86)\scala\bin;C:\Program Files (x86)\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.5.0\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;E:\pfile\cocos2d-x-cocos2d-x-3.17.2\templates;E:\pfile\cocos2d-x-cocos2d-x-3.17.2\tools\cocos2d-console\bin;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;E:\code\jdk1.8.0_181\bin\;E:\code\Android\android-sdk2441\platform-tools;E:\code\Android\android-sdk2441\tools;D:\Program Files\Fiddler;E:\code\gradle-4.10.2\bin;E:\pfile\Python37;C:\Users\Administrator\AppData\Roaming\npm;E:\codes\MicrosoftVSCode\bin;E:\pfile\opcv\opencv2.4.13.6\build\x64\vc14\bin;E:\pfile\cmake-3.12.4-win64-x64\bin;D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;E:\pfile\cuda\bin;E:\pfile\cuda\lib\x64;E:\pfile\Anaconda3\Scripts;C:\Program Files (x86)\EPSON\ScanSDK_V10\Bin;E:\pfile\nodejs;d:\Program Files\Docker Toolbox;D:\Qt\Qt5.12.4\5.12.4\mingw73_64\bin;D:\Qt\Qt5.12.4\Tools\mingw730_64\bin;C:\Program Files (x86)\scala\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;;E:\code\eclipse\eclipse-jee-2020-03-R-incubation-win32-x86_64;;.] 2020-06-10 07:20:47.269 org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] (Initializing Spring embedded WebApplicationContext 2020-06-10 07:20:47.269 org.springframework.web.context.ContextLoader (Root WebApplicationContext: initialization completed in 4508 ms 2020-06-10 07:20:47.376 org.springframework.boot.web.servlet.FilterRegistrationBean (Mapping filter: 'characterEncodingFilter' to: [/] 2020-06-10 07:20:47.376 org.springframework.boot.web.servlet.DelegatingFilterProxyRegistrationBean (Mapping filter: 'springSecurityFilterChain' to: [/] 2020-06-10 07:20:47.376 org.springframework.boot.web.servlet.FilterRegistrationBean (Mapping filter: 'webStatFilter' to urls: [/] 2020-06-10 07:20:47.376 org.springframework.boot.web.servlet.FilterRegistrationBean (Mapping filter: 'corsFilter' to: [/] 2020-06-10 07:20:47.377 org.springframework.boot.web.servlet.ServletRegistrationBean (Servlet dispatcherServlet mapped to [/] 2020-06-10 07:20:47.378 org.springframework.boot.web.servlet.ServletRegistrationBean (Servlet statViewServlet mapped to [/druid/*] 2020-06-10 07:20:47.742 com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure (Init DruidDataSource 2020-06-10 07:20:48.229 jdbc.sqlonly (select 1

2020-06-10 07:20:48.250 jdbc.sqlonly (select 1

2020-06-10 07:20:48.255 jdbc.sqlonly (select 1

2020-06-10 07:20:48.260 jdbc.sqlonly (select 1

2020-06-10 07:20:48.264 jdbc.sqlonly (select 1

2020-06-10 07:20:48.267 com.alibaba.druid.pool.DruidDataSource ({dataSource-1} inited 2020-06-10 07:20:48.490 org.hibernate.jpa.internal.util.LogHelper (HHH000204: Processing PersistenceUnitInfo [ name: default ...] 2020-06-10 07:20:48.572 org.hibernate.Version (HHH000412: Hibernate Core {5.3.7.Final} 2020-06-10 07:20:48.573 org.hibernate.cfg.Environment (HHH000206: hibernate.properties not found 2020-06-10 07:20:48.765 org.hibernate.annotations.common.Version (HCANN000001: Hibernate Commons Annotations {5.0.4.Final} 2020-06-10 07:20:49.158 org.hibernate.dialect.Dialect (HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect 2020-06-10 07:20:50.259 org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean (Initialized JPA EntityManagerFactory for persistence unit 'default' 2020-06-10 07:20:51.039 org.quartz.impl.StdSchedulerFactory (Using default implementation for ThreadExecutor 2020-06-10 07:20:51.056 org.quartz.core.SchedulerSignalerImpl (Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl 2020-06-10 07:20:51.057 org.quartz.core.QuartzScheduler (Quartz Scheduler v.2.3.0 created. 2020-06-10 07:20:51.057 org.quartz.simpl.RAMJobStore (RAMJobStore initialized. 2020-06-10 07:20:51.058 org.quartz.core.QuartzScheduler (Scheduler meta-data: Quartz Scheduler (v2.3.0) 'QuartzScheduler' with instanceId 'NON_CLUSTERED' Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. NOT STARTED. Currently in standby mode. Number of jobs executed: 0 Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads. Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

2020-06-10 07:20:51.058 org.quartz.impl.StdSchedulerFactory (Quartz scheduler 'QuartzScheduler' initialized from an externally provided properties instance. 2020-06-10 07:20:51.059 org.quartz.impl.StdSchedulerFactory (Quartz scheduler version: 2.3.0 2020-06-10 07:20:51.059 org.quartz.core.QuartzScheduler (JobFactory set to: me.zhengjie.modules.quartz.config.QuartzConfig$QuartzJobFactory@2c8c42c 2020-06-10 07:20:51.059 org.quartz.core.QuartzScheduler (Scheduler QuartzScheduler_$_NON_CLUSTERED started. 2020-06-10 07:20:52.005 org.hibernate.hql.internal.QueryTranslatorFactoryInitiator (HHH000397: Using ASTQueryTranslatorFactory 2020-06-10 07:20:52.155 org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext (Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'logAspect' defined in file [G:\workspaces_cms\eladmin\eladmin\eladmin-logging\target\classes\me\zhengjie\aspect\LogAspect.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'logServiceImpl' defined in file [G:\workspacescms\eladmin\eladmin\eladmin-logging\target\classes\me\zhengjie\service\impl\LogServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'me.zhengjie.service.mapstruct.LogErrorMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {} 2020-06-10 07:20:52.156 org.quartz.core.QuartzScheduler (Scheduler QuartzScheduler$_NONCLUSTERED shutting down. 2020-06-10 07:20:52.157 org.quartz.core.QuartzScheduler (Scheduler QuartzScheduler$_NONCLUSTERED paused. 2020-06-10 07:20:52.157 org.quartz.core.QuartzScheduler (Scheduler QuartzScheduler$_NON_CLUSTERED shutdown complete. 2020-06-10 07:20:52.164 org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean (Closing JPA EntityManagerFactory for persistence unit 'default' 2020-06-10 07:20:52.165 com.alibaba.druid.pool.DruidDataSource ({dataSource-1} closing ... 2020-06-10 07:20:52.169 com.alibaba.druid.pool.DruidDataSource ({dataSource-1} closed 2020-06-10 07:20:52.181 org.apache.catalina.core.StandardService (Stopping service [Tomcat] 2020-06-10 07:20:52.193 org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener (

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2020-06-10 07:20:52.337 org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter (


APPLICATION FAILED TO START


Description:

Parameter 1 of constructor in me.zhengjie.service.impl.LogServiceImpl required a bean of type 'me.zhengjie.service.mapstruct.LogErrorMapper' that could not be found.

Action:

Consider defining a bean of type 'me.zhengjie.service.mapstruct.LogErrorMapper' in your configuration.

elunez commented 4 years ago

思路给出了,教程也给出了,这种问题就需要自己解决了,经常用 Eclipse 如果这个都解决不了,还是换个 开发工具吧