error

Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource

喜夏-厌秋 提交于 2020-01-30 01:50:15
配置Mybatis遇到的问题 org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSession. ### The error may exist in com.smbms.dao.UserMapper.xml ### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com.smbms.dao.UserMapper.xml at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30) 这个显然是mapper.xml文件配置出了问题。 我解决的方法是, 修改分隔符(将.换成\) 来源: CSDN 作者: halla001 链接: https://blog.csdn.net/DaDaguai001/article/details/104105577

解决Vuejs报错error: Unexpected console statement (no-console)

荒凉一梦 提交于 2020-01-28 21:17:14
在项目根目录下创建 .eslintrc.js 文件,并添加如下代码: module . exports = { root : true , env : { node : true } , 'extends' : [ 'plugin:vue/essential' , 'eslint:recommended' ] , rules : { 'no-console' : process . env . NODE_ENV === 'production' ? 'error' : 'off' , // 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' } , parserOptions : { parser : 'babel-eslint' } } 如图所示: 来源: CSDN 作者: weixin_42934172 链接: https://blog.csdn.net/weixin_42934172/article/details/104100989

微信小程序自定义弹框组件

我们两清 提交于 2020-01-21 03:01:11
效果图: <!--components/popup/popup.wxml--> <view class="popup" hidden="{{flag}}"> <view class='popup-container'> <view wx:if="{{title}}" class="popup-title">{{title}}</view> <view> </view> <view class="popup-con"> <image src="{{image}}" /> <view>{{content}}</view> </view> <view class="popup-btn"> <text class="btn-no" bindtap='_error'>{{btn_no}}</text> <text class="btn-ok" bindtap='_success'>{{btn_ok}}</text> </view> </view> </view> // components/popup/popup.js Component({ /** * Component properties */ properties: { title: { // 属性名 type: String, // 类型(必填),目前接受的类型包括:String, Number, Boolean, Object,

数据结构与算法题目集(中文)6-5 链式表操作集 (20分)

末鹿安然 提交于 2020-01-20 04:12:16
本题要求实现链式表的操作集。 函数接口定义: Position Find( List L, ElementType X ); List Insert( List L, ElementType X, Position P ); List Delete( List L, Position P ); 其中 List 结构定义如下: typedef struct LNode *PtrToLNode; struct LNode { ElementType Data; PtrToLNode Next; }; typedef PtrToLNode Position; typedef PtrToLNode List; 各个操作函数的定义为: Position Find( List L, ElementType X ) :返回线性表中首次出现X的位置。若找不到则返回ERROR; List Insert( List L, ElementType X, Position P ) :将X插入在位置P指向的结点之前,返回链表的表头。如果参数P指向非法位置,则打印“Wrong Position for Insertion”,返回ERROR; List Delete( List L, Position P ) :将位置P的元素删除并返回链表的表头。若参数P指向非法位置,则打印“Wrong Position

logback 配置

感情迁移 提交于 2020-01-19 15:44:44
根据spring_actives_profile=xxx生效 <?xml version="1.0" encoding="UTF-8"?> <configuration scan="true" scanPeriod="60 seconds"> <include resource="org/springframework/boot/logging/logback/defaults.xml"/> <springProperty scope="context" name="appName" source="spring.application.name"/> <!-- 定义参数 --> <property name="log.file" value="/data/logs/${appName}"></property> <property name="log.maxHistory" value="365"/> <property name="log.pattern" value="%-12(%d{yyyy-MM-dd HH:mm:ss.SSS}) |-%-5level [%thread] %c [%L] -| %msg%n"/> <!-- 控制台设置 --> <appender name="consoleAppender" class="ch.qos.logback.core

iOS开发之上传pdf格式文件

妖精的绣舞 提交于 2020-01-15 15:04:19
- (void)presentDocumentPicker { NSArray *types = @[@"com.adobe.pdf"]; // 可以选择的文件类型,下面有关于type的解释 UIDocumentPickerViewController *documentPicker = [[UIDocumentPickerViewController alloc] initWithDocumentTypes:types inMode:UIDocumentPickerModeOpen]; documentPicker.delegate = self;//(UIDocumentPickerDelegate) documentPicker.modalPresentationStyle = UIModalPresentationFullScreen; [self presentViewController:documentPicker animated:YES completion:nil]; } #pragma mark - UIDocumentPickerDelegate - (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentsAtURLs:(NSArray<NSURL *

Python装饰器限制函数运行时间超时则退出执行 函数超时停止

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-10 14:52:27
https://www.jb51.net/article/159375.htm # -*- coding: utf-8 -*- from threading import Thread import time class TimeoutException(Exception): pass ThreadStop = Thread._Thread__stop def timelimited(timeout): def decorator(function): def decorator2(*args,**kwargs): class TimeLimited(Thread): def __init__(self,_error= None,): Thread.__init__(self) self._error = _error def run(self): try: self.result = function(*args,**kwargs) except Exception,e: self._error = str(e) def _stop(self): if self.isAlive(): ThreadStop(self) t = TimeLimited() t.start() t.join(timeout) if isinstance(t._error

极光推送代码介绍

社会主义新天地 提交于 2020-01-10 04:56:03
package com.lchy.xwx.mq.common.Jdpush; import java.util.HashMap; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.lchy.xwx.mq.util.ReadConfigUtil; import cn.jpush.api.JPushClient; import cn.jpush.api.common.TimeUnit; import cn.jpush.api.common.resp.APIConnectionException; import cn.jpush.api.common.resp.APIRequestException; import cn.jpush.api.push.PushResult; import cn.jpush.api.push.model.Message; import cn.jpush.api.push.model.Platform; import cn.jpush.api.push.model.PushPayload; import cn.jpush.api.push.model.audience.Audience; import cn.jpush.api

JAVA OpenCV Error: Assertion failed (!empty()) in cv::CascadeClassifier::detectMultiScale....

♀尐吖头ヾ 提交于 2020-01-10 03:29:14
OpenCV Error: Assertion failed (!empty()) in cv::CascadeClassifier::detectMultiScale, file C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\objdetect\src\cascadedetect.cpp, line 1681 Exception in thread “Thread-2” CvException [org.opencv.core.CvException: cv::Exception: C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\objdetect\src\cascadedetect.cpp:1681: error: (-215) !empty() in function cv::CascadeClassifier::detectMultiScale ] 解决思路:查看是否为xml路径读取出现错误 解决方法: public final static String FACE_DETECTOR_XML = “E:/opencv/opencv/sources/data/haarcascades/haarcascades