maven 库 提示找不到解决jar 包的解决方法
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=10.2.0.4.0 -Dpackaging=jar -Dfile=ojdbc7.jar
我的是没有这个jar包
1,首先在网上下载这个jar包
2,
3.cd 命令进入到放jar 这个目录
4执行上面的maven 命令
5如果缺
liunx 软件,远程复制到别的liunx下
scp -r /usr/local/redis/redis-3.2.9.tar.gz root@XXXXXX:/usr/local/redis/redis-3.2.9.tar.gz
xxxx代表远程ip
mongodb java 查询
ExampleMatcher matcher = ExampleMatcher.matching();
Members membersdata = new Members(); matcher = ExampleMatcher.matching().withMatcher("status", GenericPropertyMatchers.exact())
.withIgn...
UEditor 启用图片上传功能
第一次初始化 请求是 get 请求 需要返回参数 为{
"imageActionName": "uploadimage",
"imageFieldName": "upfile",
"imageMaxSize": 2048000,
"imageAllowFiles": [".png", ".jpg", ".
mongodb 备份 与恢复命令
export PATH=/usr/local/mongo/mongodb-linux-x86_64-rhel62-3.0.15/bin:$PATH
mongorestore -h 127.0.0.1:27017 -u xlqi -p xlqi -d test --drop /usr/local/mongo/test/
动态修改定时任务时间
@Component
public class Scheduling implements SchedulingConfigurer {
protected final static Logger logger = LoggerFactory.getLogger(Scheduling.class);
@Autowired
HealthCheck healthCheck;
...
springboot 实现发送邮件功能
application.yml
spring:
mail:
host: host
port: 端口
username: 用户名
password: 密码
from: [email protected] #发送方账号信息
properties:
mail:
smtp:
auth: true
...
liunx使用expect 实现远程执行 脚本
#!/bin/bash
#defined
expect /usr/local/resourceShell/exekill.sh xxxx xxxxx
sleep 2
expect /usr/local/resourceShell/exekill.sh xxx xxxxxxx 代表向exekill.sh 传递的参数exekill.sh 内容如下:
#!/usr/bin/expect...
解决Spring Security OAuth在访问/oauth/token时候报401 authentication is required
先来张图片 我在用psotman 测试oauth授权码模式的出现了401的异常, 就是调用oauth/token.我是想用code换token,但是发现报错了。这是为什么呢? 首先你要理解/oauth/token这个如果配置支持allowFormAuthenticationForClients的,且url中有client_id和client_sec...
liunx 杀死应用进程.sh
#!/bin/bash
#defined
ps -ef | grep sso-server.jar| grep -v grep | cut -c 9-15 | xargs kill -s 9 grep 后面接 你的应用名字
zuul springboot 参数配置
zuul:
#设置参数Encoding
forceOriginalQueryStringEncoding: true
# routes:
# service-A:
# path: /**
# serviceId: api
max:
host:
connections: 100000
host:
connect-timeout...
解决Ubuntu下pycharm无法输入中文的问题
1、通过快捷键Ctrl + Alt + T打开终端命令操作窗口,输入:sudo nautilus,然后根据提示输入密码,输入完毕可能会出现些警告信息,不用管。
nautilus这个命令是用于以root权限打开文件管理窗口。
2、在这个界面中通过“计算机”进入pycharm.sh所在文件夹。一般在安装包的bin文件夹中。
3、在文件pycharm.sh中添加红色字样内容(根据自己实际py...
本地仓库关联远程仓库
1、创建远程仓库
2、本地仓库目录下进行初始化
$ git init
3、提交更新
$ git commit -m'init'
*若出现红色文件名则使用
git add <文件名>
添加文件,然后再次提交
4、关联远程仓库
$ git remote add origin [email protected]:gengba/tianyanchadata.git
5、...
Windows中安装使用Virtualenv来创建独立Python环境
1.现安装模块包virtualenv: pip install virtualenv
2.创建虚拟环境:virtualenv env1
python基础 列表
list=[3,2,3,4,5] #列表
str="oiiopo"
for i in list :
print(i)
print(list[i-1])
输出:1,2,3,4,5 #输出字符串对应的值
输出3,2,3,4,5 #输出列表索引对应的键值 索引(0,len(list)-1)
list+str列表和字符串不能连接
list 索引揗环闭环
del l
周排行