- 博客(55)
- 资源 (11)
- 收藏
- 关注
原创 spring “ expected single matching bean but found 2“ 问题一例
// 这个是正确的@MapperScan("com.terry.demo.mapper")public class PuaiApplication { public static void main(String[] args) { SpringApplication.run(PuaiApplication.class, args); }}// 这个是罪魁祸首@MapperScan("com.terry.demo")public class PuaiAp.
2020-08-21 23:41:29
405
原创 js中继承的几种用法总结(apply,call,prototype)
js中继承的几种用法总结(apply,call,prototype)call()方法的作用和 apply() 方法类似,区别就是call()方法接受的是参数列表,而apply()方法接受的是一个参数数组。本文参照:js中继承的几种用法总结(apply,call,prototype) 原文链接js原型(prototype)实现继承function Person(name, age) { ...
2020-04-02 21:11:58
255
原创 树莓派3B+插入电源后状态灯只有红灯常亮,无法接入屏幕!
树莓派3B+插入电源后状态灯只有红灯常亮,无法接入屏幕!除了其他人说的这些之外:1、确认内存卡插入正确;树莓派没有硬件上的损坏‘’2、使用NOOBS方式安装系统,(虽然时间有点长,但是感觉是可以排除很多问题,比较适合我这种新手);3、如果使用NOOBS安装方式仍然进不去并且看不到屏幕显示,你可以考虑换一个电源接入!没错,我折腾了一下午结果就是因为插排的原因,上面插的东西比较多,电压...
2020-03-05 13:37:03
7294
1
原创 微信小程序登录和授权 小白摸索的推荐使用方法和最佳实践
微信登录和授权 小白摸索的推荐使用方法和最佳实践参考链接:https://www.cnblogs.com/kenshinobiy/p/9118024.html之前的问题开发者在首页直接调用 wx.getUserInfo 进行授权,弹框有会使得一部分用户放弃小程序的使用。开发者没有处理用户拒绝弹框的情况,有部分小程序强制要求用户授权头像昵称等信息才能继续使用小程序。用户没有很好的方式重新...
2020-03-03 14:47:59
1160
原创 centOS7上面安装wkhtmltopdf的记录
Using username “terry”.Last login: Sun Feb 16 21:46:27 2020 from 192.168.31.134[terry@MiWiFi-R4AC-srv ~]$ su密码:[root@local terry]#[root@local terry]# pwd/home/terry[root@local terry]# cd /usr/l...
2020-02-17 16:12:28
1250
原创 在centos7上安装mariaDB 和 初始化 全程记录
#安装mariaDB 和 初始化 全程记录#[terry@/home/terry]$sudo yum install mariadb-server[sudo] password for terry: Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile base: mi...
2020-02-12 11:12:19
1019
原创 微信小程序云开发踩坑记
一、云函数可本地调试,无需每次上传了再看云端的console.log('xxx')二、如果使用真机调试则本地调试无效,必须将云函数上传上去才有效果!三、本地调试的时候,env的值是undefined,如果你要指定某个环境,建议用如下方式:// 两个env的idconst test_env = 'l4-test-20191121';const prod_env = 'l4-...
2019-12-18 16:07:30
1085
转载 [转]Nginx配置文件详解
######Nginx配置文件nginx.conf中文详解######定义Nginx运行的用户和用户组user www www;#nginx进程数,建议设置为等于CPU总核心数。worker_processes 8;#全局错误日志定义类型,[ debug | info | notice | warn | error | crit ]error_log /usr/local/n...
2019-07-17 16:53:48
139
原创 Intellij IDEA 调试Spring Boot 项目时,调试启动到一半就停止的问题。
最近使用Intellij IDEA 调试Spring Boot 项目时,调试启动到一半就停止了,就像下面这样:2019-05-03 00:00:19.154 INFO 8076 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (htt...
2019-05-03 00:12:43
2834
2
转载 TypeScript 学习笔记:属性索引器
export interface StringValidator { isAcceptable(s: string): boolean;}const lettersRegexp = /^[A-Za-z]+$/;export class LettersOnlyValidator implements StringValidator { isAcceptable(s: stri
2017-10-27 16:57:44
2583
转载 TypeScript 类型映射的妙用:
//==========================// 知识点:映射类型class People {name: string;age: number;height: number;address: string;}// 用途:// 1、可空类型的定义: // 按照下方这样创建一个People的实例的话,类的每个属性都可以返回空.type Nul
2017-10-27 15:25:53
3528
1
转载 TypeScript的映射类型
映射类型一个常见的任务是将一个已知的类型每个属性都变为可选的:interface PersonPartial { name?: string; age?: number;}或者我们想要一个只读版本:interface PersonReadonly { readonly name: string; readonly age: number;
2017-10-27 14:39:00
5182
原创 TypeScript 的索引签名 的笔记
先看下这段代码:class Animal { type: string;}class Dog extends Animal { name: string}class AnimalArray { dog: Dog; readonly [index: number]: Dog; readonly [index: string]: Dog;
2017-10-26 15:53:21
6428
13
原创 openfire + sqlserver ,以及现有系统的账户集成
我要说的重点就是1、安装完成之后,openfire的控制台不需要进行任何配置,下面所有的配置可以通过数据库脚本直接搞定。2、那个conf文件夹里面,也不需要进行任何修改!总的来讲,如果你要集成现有账户:只需要修改ofProperty这个表就行了,配置方面不用作其他修改!!!ONLY DATABASE!!!ONLY DATABASE!!!ONLY DAT...
2016-12-08 14:19:50
616
原创 Android 日期 Calendar 关于时间段的操作
根据一个传递过来的日期,得到指定类型的时间段:例如,传递过来一个日期,并指定一个类型(周、月份、季度、半年、年),返回一个Timespan,包含开始日期和结束日期.
2016-10-26 15:46:11
3851
转载 Android开发之多线程编程Thread和Runnable使用
本文系转载,原帖地址为: http://blog.youkuaiyun.com/mad1989/article/details/38234759本例非常清晰的展示了Thread和Runnable的作用和用法,包括多线程数据同步,对作者表示由衷感谢,一字不差的转载过来了。Android可有两种方式实现多线程,一种是继承Thread类,一种是实现Runnable接口;前者只要继承了Thread
2016-05-25 14:22:18
542
原创 Android照相并返回照相结果的最终代码
下面是两个大坑:1、要使用 MediaStore.EXTRA_OUTPUT 方法,传递uri,如果不使用MediaStore.EXTRA_OUTPUT 方式,那么,在onActiveResult里面(不管任何方法)传递过来的照片就是缩略图。2、要使用FileDir,先创建要给File对象,然后使用Uri.fromFile(fileDir)传递给intent.putExtra,如果直接创建
2016-04-22 13:21:56
818
原创 安卓异步复制文件对话框的实现,从手机移动整个文件夹到外置存储卡
本例实现了将APP的数据从手机内存移动到外置存储卡。主要知识点如下:1、获得APP的数据存储位置: File[] files = ContextCompat.getExternalFilesDirs(getBaseContext(), null);File dirPhone = files[0];File dirSDCard = files[1];上面的fil
2015-11-05 11:24:10
2933
原创 android 如何显示模态的 DialogFragment。
如果你要从一个activity里面创建一个DialogFragment,在DialogFragment里面执行一个进度条(当然可以使用ProgressDialog,但是自己做不是更漂亮?),可能你会这样: FragmentTransaction ft = getFragmentManager().beginTransaction(); CopyDialogFra
2015-10-29 17:23:22
1042
原创 Radeon x1300 x1550 在Windows 10上面无法识别的解决方法
网上有很多方法,还有驱动精灵、驱动人生,我都下载试过,统统不行!! 还给我整出很多东西。驱动精灵是根本找不到这个硬件! 最恶心的是还给我高出一大堆什么系统助手啊之类的! 换驱动人生,开始给我安装一个人生日历,我去! 结果能检测到这个硬件的驱动是公版的,需要修复,有进步,但是修复重启后,还是不行,重启进入疑难解答模式,打开那个“强制XXX签名”神马的,还是不行
2015-10-28 18:34:23
6599
原创 IIS 7.5 .Net 4.5 WCF 404.3错误
控制面板、“添加、删除程序” 、添加角色服务中,把 “HTTP 激活”勾选上,就可以了。好用请点赞!
2015-09-24 16:20:19
479
原创 DecimalFormater、BigDecimal和RoundingMode的使用方法,还有千分符,一次搞定!
看了长篇大论的东西,太复杂,搞不懂! 直接上图,给你看最直接的运算结果:你会明白:BigDecimal对象,使用字符串来初始化才是王道,看sbd1~13变量的初始化方法。使用DecimalFormat对象,直接就可以实现千分符了,看bx5、bx6字符串对象的值,“10,000,000”。各种RoundingMode的使用区别:
2015-07-29 17:13:32
2094
转载 MVC3 Razor视图引擎的基础语法
原地址:http://www.cnblogs.com/xdotnet/archive/2011/05/20/mvc3.html好久没有关注微软的开发了,今天看到了MVC3,顺便学习学习,我觉得Razor是个不错的做法,比使用简单多了,而且好看。首先“_”开头的cshtml文档将不能在服务器上访问,和asp.net中的config文档差不多。Razor语法
2015-06-15 16:04:44
609
转载 VC++ 输入流迭代器
输入一些单词,中间使用空格分隔,最后统计每个单词出现的次数。#include "stdafx.h"#include #include #include #include #include #include #include using std::cin;using std::cout;using std::endl;using std::tuple;using st
2015-06-10 13:40:06
572
翻译 VC++ 完整的例子(电话本管理)
文件一:Person.h//Person.h#pragma once#include using std::string;class Person{public: Person(const string& first="",const string& second="") :firstname(first),secondname(second){ } Pers
2015-06-09 17:36:36
587
原创 VC++ 使用 typedef, Tuple, Array 来模拟一个对象的列表,并对列表进行增减、赋值和访问,
下面是综合例子:#include "stdafx.h"#include #include #include #include #include using std::cout;using std::endl;using std::tuple;using std::string;using std::setw;using std::get;const size_t
2015-06-09 16:47:54
633
原创 VC++ 字符串赋值例子(2)
本例中,讲了两点,一个是字符串赋值,一个是vector链表的迭代访问。#include "stdafx.h"#include #include #include using std::cout;using std::endl;using std::vector;class CNode{private: char* firstName;public: CNode(con
2015-06-09 15:25:31
1159
原创 vc++ PushBack 和 Assign 的示例
开门见山,先看例子:#include "stdafx.h"#include #include using std::cout;using std::endl;using std::vector;int main(int argc,_TCHAR* argv[]){ vector values; for(int i=1;i<=5;i++) values.push_back(
2015-06-09 14:46:27
572
原创 vector 用法之:顺向和逆向
要使用迭代器访问矢量中的元素,但不希望修改元素是,可以使用cbegin和cend函数,他们返回const迭代器。#include "stdafx.h"#include #include using std::cout;using std::endl;using std::vector;int main(int argc,_TCHAR* argv[]){ int n[]={1
2015-06-09 11:44:31
2004
原创 VC++ unique_ptr的使用例子
下面是代码示例:#include "stdafx.h"#include #include using std::cout;using std::cin;using std::endl;using std::unique_ptr;unique_ptr treble(double);int main(int argc,_TCHAR* argv[]){ double
2015-06-09 11:10:30
965
原创 C++ 函数模板示例 2 (配合decltype)
#include "stdafx.h"#include #include #include #include using std::cout;using std::cin;using std::endl;using std::setw;template auto product(T1 v1[], T2 v2[], size_t count) -> decltype(v1[0
2015-06-08 18:44:45
952
原创 vc++ 的指针和数组结合理解的最佳例子
下面的方法先接受用户的输入(不超过80个字符),然后计算输入的字符的长度:#include "stdafx.h"#include #include #include using std::cout;using std::cin;using std::endl;using std::setw;int main(int argc,_TCHAR* argv[])
2015-06-08 16:50:05
2054
原创 C++友元函数(有缘分,咋都行!)
酒逢知己么么哒,话不投机呵呵呵。有缘分,就可以任性!#include "stdafx.h"#include "string.h"class CItem{ //只让名为"OutputItem(CItem *pItem)"的这个函数访问自己的私有对象, //但是如果OutputItem这个函数没有定义,这里也不会报错. friend void OutputItem(CIt
2015-06-05 15:26:15
560
原创 C++运算符重载
#include "stdafx.h"#include "string.h"class CBook{public: int m_Pages; CBook operator+(const CBook &book) { CBook bk; bk.m_Pages = m_Pages + book.m_Pages; return bk; } CBook operator+
2015-06-05 15:09:17
583
原创 VC++ 的this关键字
每个成员函数中都隐含包含一个this指针作为函数桉树,并在函数调用时将对象自身的地址隐含作为实际参数传递#include "stdafx.h"#include "string.h"class CBook{public: int m_Pages; /* 每个成员函数中都隐含包含一个this指针作为函数桉树,并在函数调用时将对象自身的 地址隐含作为实际参数传递 这个方法
2015-06-05 15:02:51
861
原创 C++ 复制构造函数
#include "stdafx.h"#include "string.h"class CBook{public: char m_BookName[128]; const unsigned int m_Price; int m_ChapterNum; CBook() :m_Price(32),m_ChapterNum(15) { strcpy_s(m_BookName,"
2015-06-05 14:29:09
430
Android 照相并获得照片的URI的基本示例代码
2016-04-22
gradle-2.3-all.zip
2015-04-16
gradle-2.2.1-all.zip
2015-04-16
gradle-2.0-all.zip
2015-04-16
项目申报实施系统建设方案 样本
2010-09-13
随机姓名生成器 (按性别) C# 源代码和执行程序
2010-05-31
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人