java吧 关注:1,248,227贴子:12,730,231
  • 10回复贴,共1

各位,我的ssh矿建搭建不知道哪里有问题 麻烦看一下好吗

只看楼主收藏回复



1楼2018-02-06 17:28回复
    这是hibernate5.2.12的配置文件


    2楼2018-02-06 17:33
    回复
      这是spring5.0.2的配置文件


      3楼2018-02-06 17:34
      回复
        项目结构


        4楼2018-02-06 17:35
        回复
          这是测试hibernate连接数据库的测试文件


          5楼2018-02-06 17:38
          回复
            这是整合spring+hibernate的测试文件


            6楼2018-02-06 17:39
            回复
              报错
              二月 06, 2018 5:40:23 下午 org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
              信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@233c0b17: startup date [Tue Feb 06 17:40:23 CST 2018]; root of context hierarchy
              二月 06, 2018 5:40:23 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
              信息: Loading XML bean definitions from class path resource [applicationContext.xml]
              二月 06, 2018 5:40:23 下午 org.springframework.context.support.ClassPathXmlApplicationContext refresh
              警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Cannot create inner bean '(inner bean)#1372ed45' of type [org.springframework.aop.aspectj.AspectJExpressionPointcut] while setting bean property 'pointcut'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1372ed45': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.aop.aspectj.AspectJExpressionPointcut]: No default constructor found; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException


              7楼2018-02-06 17:40
              回复
                另外 我hibernate连接数据库的测试文件可以运行而且无报错
                希望有大牛知道麻烦告诉一下好吗 在下感激不尽


                8楼2018-02-06 17:42
                回复
                  emmm。这样的不行吗@knciik


                  11楼2018-02-06 17:57
                  收起回复