springboot 连接SqlServer失败

提问 3 3280
jdkc
jdkc 2019-02-19
==================================================================================================================== ==================================================================================================================== 2019-02-19 14:53:08.063 INFO 8208 --- [ main] io.renren.RenrenApplication : Starting RenrenApplication on OKGS9ZLATND86ST with PID 8208 (started by Administrator in D:\程序\renrne\renren-fast) 2019-02-19 14:53:08.074 DEBUG 8208 --- [ main] io.renren.RenrenApplication : Running with Spring Boot v2.0.3.RELEASE, Spring v5.0.7.RELEASE 2019-02-19 14:53:08.076 INFO 8208 --- [ main] io.renren.RenrenApplication : The following profiles are active: dev 2019-02-19 14:53:08.196 INFO 8208 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@363042d7: startup date [Tue Feb 19 14:53:08 CST 2019]; root of context hierarchy 2019-02-19 14:53:09.868 INFO 8208 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode! 2019-02-19 14:53:10.392 INFO 8208 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'shiroConfig' of type [io.renren.config.ShiroConfig$$EnhancerBySpringCGLIB$$836af0e6] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2019-02-19 14:53:10.537 INFO 8208 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.context.properties.ConversionServiceDeducer$Factory' of type [org.springframework.boot.context.properties.ConversionServiceDeducer$Factory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2019-02-19 14:53:10.675 INFO 8208 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'mybatis-plus-com.baomidou.mybatisplus.spring.boot.starter.MybatisPlusProperties' of type [com.baomidou.mybatisplus.spring.boot.starter.MybatisPlusProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2019-02-19 14:53:10.686 INFO 8208 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'mybatisPlusConfig' of type [io.renren.config.MybatisPlusConfig$$EnhancerBySpringCGLIB$$e696f802] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2019-02-19 14:53:10.988 INFO 8208 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'paginationInterceptor' of type [com.baomidou.mybatisplus.plugins.PaginationInterceptor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2019-02-19 14:53:11.001 INFO 8208 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.baomidou.mybatisplus.spring.boot.starter.MybatisPlusAutoConfiguration' of type [com.baomidou.mybatisplus.spring.boot.starter.MybatisPlusAutoConfiguration$$EnhancerBySpringCGLIB$$6d8ef3b1] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2019-02-19 14:53:11.008 INFO 8208 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'dynamicDataSourceConfig' of type [io.renren.datasources.DynamicDataSourceConfig$$EnhancerBySpringCGLIB$$e7d0f2d9] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2019-02-19 14:53:11.121 INFO 8208 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties' of type [org.springframework.boot.autoconfigure.jdbc.DataSourceProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2019-02-19 14:53:11.130 INFO 8208 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.alibaba.druid.spring.boot.autoconfigure.stat.DruidFilterConfiguration' of type [com.alibaba.druid.spring.boot.autoconfigure.stat.DruidFilterConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2019-02-19 14:53:11.184 INFO 8208 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'statFilter' of type [com.alibaba.druid.filter.stat.StatFilter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2019-02-19 14:53:11.194 WARN 8208 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'methodValidationPostProcessor' defined in class path resource [org/springframework/boot/autoconfigure/validation/ValidationAutoConfiguration.class]: Unsatisfied dependency expressed through method 'methodValidationPostProcessor' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'shiroFilter' defined in class path resource [io/renren/config/ShiroConfig.class]: Unsatisfied dependency expressed through method 'shirFilter' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityManager' defined in class path resource [io/renren/config/ShiroConfig.class]: Unsatisfied dependency expressed through method 'securityManager' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'OAuth2Realm': Unsatisfied dependency expressed through field 'shiroService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'shiroServiceImpl': Unsatisfied dependency expressed through field 'sysMenuDao'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sysMenuDao' defined in file [D:\程序\renrne\renren-fast\target\classes\io\renren\modules\sys\dao\SysMenuDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/spring/boot/starter/MybatisPlusAutoConfiguration.class]: Unsatisfied dependency expressed through method 'sqlSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataSource' defined in class path resource [io/renren/datasources/DynamicDataSourceConfig.class]: Unsatisfied dependency expressed through method 'dataSource' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'firstDataSource' defined in class path resource [io/renren/datasources/DynamicDataSourceConfig.class]: Invocation of init method failed; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class 2019-02-19 14:53:11.207 INFO 8208 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-02-19 14:53:11.212 ERROR 8208 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Action: Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
回帖
  • 把多数据源去掉,数据库连接重新配置下试试
    0 回复
  • jdkc
    jdkc (楼主)
    2019-02-20
    @Mark 没有
    0 回复
  • 黄其
    2019-07-12
    解决了吗 还是我也有这个问题
    0 回复