Easter79 Easter79
4年前
tp3.2 生成带logo的二维码
下载phpqrcode整合到Thinkphp框架在“ThinkPHP\\Library\\Vendor\\”下新建目录phpqrcode,将压缩包内容解压到该文件夹下。调用phpqrcode生成二维码在IndexController控制器下添加如下方法:
Easter79 Easter79
4年前
spring和JPA
Entity使用@Entity注解使javabean类成为实体类。一般使用@Id注解在成员变量或者其对应的get方法设置实体类的主键。例子:packagecom.hgf.jpa.domain;importjavax.persistence.Entity;importjavax
Wesley13 Wesley13
4年前
UITabBarController的简单使用
UITabBarController的使用步骤初始化UITabBarController设置UIWindow的rootViewController为UITabBarController根据具体情况,通过addChildViewController方法添加对应个数的子控制器通常而言,UITabBarController一般作为应用程序的
Wesley13 Wesley13
4年前
thinkphp5中的excel表的导入导出
首先需要下载PHPExcelPHPExcel下载地址:https://pan.baidu.com/s/1GjbcSXxHwbLeBw8NzzIBYA提取码:zbqq使用composer命令(本人使用的方法,具体怎么下载,看你心情咯~~)cmd命令进入项目的根目录composerrequirephpoffice/phpexcel!
Stella981 Stella981
4年前
Centos 7 替换镜像源
1备份原始源\root@localhost~\mv/etc/yum.repos.d/CentOSBase.repo/etc/yum.repos.d/CentOSBase.repo.backup2下载新的镜像源方法1:wget直接下载执行命令
Stella981 Stella981
4年前
Android BLE 总结-源码篇(BluetoothLeAdvertiser)
在做AndroidBLE的应用程序时,我们发出广播数据是调用BluetoothLeAdvertiser的startAdvertising方法,如下所示:\java\viewplain(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fan
Stella981 Stella981
4年前
Redis与Memecahed注册服务
一、Redis方法1:通过redis的自带工具安装1.    进入redis安装目录2.    shift鼠标右键打开菜单,点击“在此处打开命令窗口”,成功打开cmd3.    安装redis服务:redisserverserviceinstallredis.windows.confservicenamer
Stella981 Stella981
4年前
PHP 使用 VarDumper 进行优雅调试
使用截图!(https://oscimg.oschina.net/oscnet/fb45d260294466f3e22478ab161768db1b4.jpg)安装方法1.安装composer.//安装Composer,如果已经安装过,可不必再安装cur
Stella981 Stella981
4年前
Python3——匿名函数
没有名字的函数,不用写return,返回值就是该表达式的结果。语法:lambda参数:方法(或三元运算)lambdax:xx等同于deff(x):returnxx普通函数defcalc(x,y):ifxy:retur
Easter79 Easter79
4年前
SpringMvc的传递参数方式
1\.@requestMapping:类级别和方法级别的注解,指明前后台解析的路径。 有value属性(一个参数时默认)指定url路径解析,method属性指定提交方式(默认为get提交) @RequestMapping(value "/testing")public class QuestionSe