问答
  • 最新发布
  • 热门推荐
  • 热门评论
  • update

    编写TestMyBatis的插入方法不提示错误,Junit Test不成功,日志如下

    og4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender. [INFO ][2017-05-16 13:14:48,954][AbstractTestContextBootstrapper:260] Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] [INFO ][2017-05-16 13:14:48,975][AbstractTestContextBootstrapper:187] Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@458ad742, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@5afa04c, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@6ea12c19, org.springframework.test.context.support.DirtiesContextTestExecutionListener@6a024a67, org.springframework.test.context.transaction.TransactionalTestExecutionListener@7921b0a2, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@174d20a] [INFO ][2017-05-16 13:14:49,084][XmlBeanDefinitionReader:317] Loading XML bean definitions from class path resource [spring/spring-context.xml] [INFO ][2017-05-16 13:14:49,231][XmlBeanDefinitionReader:317] Loading XML bean definitions from class path resource [spring/spring-mybatis.xml] [INFO ][2017-05-16 13:14:49,265][AbstractApplicationContext:581] Refreshing org.springframework.context.support.GenericApplicationContext@7cd62f43: startup date [Tue May 16 13:14:49 CST 2017]; root of context hierarchy [INFO ][2017-05-16 13:14:49,400][PropertiesLoaderSupport:172] Loading properties file from class path resource [jdbc_config.properties] [ERROR][2017-05-16 13:14:49,530][DruidAbstractDataSource:970] maxIdle is deprecated [INFO ][2017-05-16 13:14:49,632][DruidDataSource:722] {dataSource-1} inited [WARN ][2017-05-16 13:14:49,773][AbstractApplicationContext:549] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'systemTypeService': Unsatisfied dependency expressed through method 'setSystemTypePoMapper' parameter 0: Error creating bean with name 'systemTypePoMapper' defined in file [D:\JavaEducatio\All-learn\target\classes\com\education\ssm\dao\system\SystemTypePoMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\JavaEducatio\All-learn\target\classes\mybatis\mapper\system\SystemDepartmentPoMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.education.ssm.dao.system.SystemDepartmentPoMapper.BaseResultMap; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemTypePoMapper' defined in file [D:\JavaEducatio\All-learn\target\classes\com\education\ssm\dao\system\SystemTypePoMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\JavaEducatio\All-learn\target\classes\mybatis\mapper\system\SystemDepartmentPoMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.education.ssm.dao.system.SystemDepartmentPoMapper.BaseResultMap [INFO ][2017-05-16 13:14:49,774][DruidDataSource:1447] {dataSource-1} closed [ERROR][2017-05-16 13:14:49,782][TestContextManager:234] Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@6ea12c19] to prepare test instance [com.education.ssm.TestMyBatis@2fb3536e] java.lang.IllegalStateException: Failed to load ApplicationContext 编写TestMyBatis的插入方法不提示错误,Junit Test不成功,日志如下
    发布于:2017-05-16 13:21:31 回答(1) 浏览(41)
  • 624****@qq.com

    ES相关度和时间排序问题

    老师您好,ES搜索出来的结果,如果在影响相关度不大的情况下,怎么样时间近的排在前面?有没有什么样的解决方式。
    发布于:2017-05-16 01:25:38 回答(0) 浏览(22)
  • mao****@qq.com

    咨询一下:订购的课程有效期一般为多长

    咨询一下,我们订购的课程,你们一般会有有效期吗,如果有的话,多长时间左右,方便计划?原因是:平常工作比较忙,所以只能有时抽点时间学习,因此咨询一下,以便计划,谢了!
    发布于:2017-05-15 22:53:37 回答(1) 浏览(61)
  • lov****@qq.com

    Elasticsearch 数据源

    老师你好: 请问Elasticsearch 的数据来源是哪里,我们现在搜索完全靠数据库。 有什么好的方法能实时同步mysql数据到Elasticsearch吗
    发布于:2017-05-09 16:56:24 回答(0) 浏览(40)
  • 460****@qq.com

    学院的课程都很好,但是实际开发写的代码还是不够好,可出一些列强化java基础或者最佳实践的课程吗?

    学院的课程都很好,但是实际开发写的代码还是不够好,可出一些列强化java基础或者最佳实践的课程吗?
    发布于:2017-05-08 14:46:57 回答(1) 浏览(67)
  • nai****@foxmail.com

    为什么不分库或分表

    所有商户的交易订单都放在一个表里不会影响速度吗? 为什么不把不同商户的数据放到不同的库中或表中呢? 而且不同商户之见的数据也没有关联关系 不要考虑分库或分表带来的一些复杂度吧
    发布于:2017-04-19 14:58:16 回答(0) 浏览(142)
  • shi****@163.com

    能用手机观看视频吗 或者有app 下载吗

    能用手机观看视频吗 或者有app 下载吗
    发布于:2017-04-11 21:48:25 回答(1) 浏览(172)
  • 828****@qq.com

    roncoo-py部署

    导入工程后,一直在下载jar,一天了还没下完。有什么办法处理下啊
    发布于:2017-04-11 16:12:23 回答(1) 浏览(135)
  • new****@126.com

    龙果学院有没有规划CQRS的视频?

    龙果学院有没有规划CQRS的视频(axon framework)?
    发布于:2017-04-02 22:50:39 回答(0) 浏览(113)
  • new****@126.com

    最大努力型通知,app-notify部署了2个节点会不会不必要的重复通知?

    吴老师,您好! 最大努力型通知,app-notify部署了2个节点会不会不必要的重复通知?
    发布于:2017-04-02 22:45:44 回答(1) 浏览(124)
  • 185****@sina.cn

    dubbo 服务降级或本地伪装

    大牛们,针对服务降级InterfaceMock中的属性怎么注入啊,这个是dubbo遇到RpcException后主动调起相对应接口的InterfaceMock的
    发布于:2017-03-22 18:22:12 回答(0) 浏览(158)
  • 526****@qq.com

    关于springmvc中的service注入dubbo提供的service服务的事务一致性问题

    老师你好,我的一个springmvc工程中的controller层注入1个service。这个service又注入了2个dubbo工程提供服务的service.。。我springmvc层的service做了事务配置,这个事务配置会对dubbo的service生效吗?就是说这个消费方和服务方会保持事务一致性吗?
    发布于:2017-03-17 00:31:25 回答(1) 浏览(176)
  • 329****@qq.com

    请问按照第二节课的样例做打包的时候报错找不到pom文件怎么处理呢?

    [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9.257 s [INFO] Finished at: 2017-03-16T17:10:19+08:00 [INFO] Final Memory: 27M/212M [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "pom.xml" could not be activated because it does not exist. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project spring-boot-demo-2-1: There are test failures. [ERROR] [ERROR] Please refer to /Users/xxg/Documents/workspace/spring-boot-demo-2-1/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
    发布于:2017-03-16 17:14:08 回答(1) 浏览(136)
  • 294****@qq.com

    如果使用spring boot怎么能实现分项目 配置集中管理呢?

    我们有多个服务想重构代码,想使用springboot,想把所有的项目配置集中管理,请大神给个学习的路子??
    发布于:2017-03-15 22:59:55 回答(1) 浏览(149)
  • qhb****@sina.com

    关于Dubbo服务,如何做到热部署

    老师好,在实际环境中,如何做到Dubbo服务的热部署,不影响任何一个用户的请求。做到无感知升级。
    发布于:2017-03-05 03:13:28 回答(1) 浏览(236)
  • 581****@qq.com

    关于dubbo课程demo中数据库密码

    demo中的mysql数据库密码是用什么加密的,现在我本地密码和课程上的不一样,我应该要怎么加密
    发布于:2017-02-27 23:09:35 回答(1) 浏览(173)
  • zho****@qq.com

    为什么新建的springboot项目报错

    新建的springboot web项目,一建出来pom.xml就报错 错误的地方是这里: × <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.1.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> 错误的信息是这样的: Multiple annotations found at this line: - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven- resources-plugin:2.6:testResources (execution: default-testResources, phase: process-test-resources) - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven- resources-plugin:2.6:resources (execution: default-resources, phase: process-resources) 试过网上搜一些信息但都没用,快崩溃了,请问怎么办呀?
    发布于:2017-02-06 10:40:56 回答(1) 浏览(241)
  • lij****@163.com

    Spring Boot基础教程5-日志配置-logback和log4j2的问题

    用logback方式配置报错 配置如下: <property name="TEST_FILE_PATH" value="D:/document/workspace_02/logs" /> <!-- pro文件路径 --> <!--<property name="PRO_FILE_PATH" value="/opt/roncoo/logs" />--> <property name="PRO_FILE_PATH" value="D:/document/workspace_02/logs/" /> <!-- 开发环境 --> <springProfile name="dev"> <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>${PATTERN}</pattern> </encoder> </appender> <logger name="com.uztek.example" level="debug"/> <root level="info"> <appender-ref ref="CONSOLE" /> </root> </springProfile> <!-- 测试环境 --> <springProfile name="test"> <!-- 每天产生一个文件 --> <appender name="TEST-FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <!-- 文件路径 --> <file>${TEST_FILE_PATH}</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <!-- 文件名称 --> <fileNamePattern>${TEST_FILE_PATH}/info.%d{yyyy-MM-dd}.log</fileNamePattern> <!-- 文件最大保存历史数量 --> <MaxHistory>100</MaxHistory> </rollingPolicy> <layout class="ch.qos.logback.classic.PatternLayout"> <pattern>${PATTERN}</pattern> </layout> </appender> <root level="info"> <appender-ref ref="TEST-FILE" /> </root> </springProfile> 报错信息: ERROR in ch.qos.logback.core.rolling.RollingFileAppender[TEST-FILE] - openFile(D:/document/workspace_02/logs,true) call failed. java.io.FileNotFoundException: D:\document\workspace_02\logs (拒绝访问。) at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:161) at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithSpecificConfig(AbstractLoggingSystem.java:57) at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:47) at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:114) at org.springframework.boot.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:304) at org.springframework.boot.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:272) at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:235) at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:208) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:121) at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:68)
    发布于:2017-01-05 16:19:06 回答(1) 浏览(317)
  • xue****@163.com

    springboot url 问题

    请问老师 为什么 springboot web项目 访问时不带项目名 http://127.0.0.1:8080/index/1 传统的都是下面这样的路径 http://127.0.0.1:8080/project/index/1
    发布于:2016-12-24 02:00:40 回答(1) 浏览(313)
  • 279****@qq.com

    想问下老师们的架构图是用的什么工具画的

    想问下老师们的架构图是用的什么工具画的,非常漂亮,能否告知?
    发布于:2016-12-22 17:48:37 回答(1) 浏览(522)
热门问题

注册

找回密码

没有账号?立即注册

注册成功,激活邮件已发送至您的邮箱请注意查收并激活帐号。

如未收到激活邮件,请点击重新发送

正在加载 · · ·