上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: ###一、整合JTA(atomikos) 通过maven坐标引入JTA atomikos <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jta-atomikos</ar 阅读全文
posted @ 2021-01-29 19:39 离人怎挽_wdj 阅读(515) 评论(0) 推荐(0) 编辑
摘要: 为了增强Mybatis的功能性和易用性,有两种比较常用的方案 Mybatis Genenrator Mybatis Plus ###一、整合Mybatis 第一步:引入maven依赖包,包括mybatis相关依赖包和mysql驱动包。 <dependency> <groupId>org.mybati 阅读全文
posted @ 2021-01-28 18:45 离人怎挽_wdj 阅读(179) 评论(0) 推荐(0) 编辑
摘要: ###一、主流的多数据源支持方式 将数据源对象作为参数,传递到调用方法内部,这种方式增加额外的编码。如:JDBC多数据源添加方式 将Repository操作接口分包存放,Spring扫描不同的包,自动注入不同的数据源。这种方式实现简单,也是一种“约定大于配置”思想的典型应用。本文将以这种方式实现JP 阅读全文
posted @ 2021-01-27 20:24 离人怎挽_wdj 阅读(569) 评论(0) 推荐(0) 编辑
摘要: ###一、 Sping Data JPA 简介 Spring Data JPA 是 Spring 基于 ORM 框架、JPA 规范的基础上封装的一套 JPA 应用框架,底层使用了 Hibernate 的 JPA 技术实现,可使开发者用极简的代码即可实现对数据的访问和操作。它提供了包括增删改查等在内的 阅读全文
posted @ 2021-01-27 17:31 离人怎挽_wdj 阅读(129) 评论(0) 推荐(0) 编辑
摘要: git init git add . git commit -m '添加文件' git push -u https://github.com/weidaijie1/SpringBootStudy.git master 阅读全文
posted @ 2021-01-27 17:11 离人怎挽_wdj 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 解决前台传入参数后台数据null @RequestMapping(method = RequestMethod.POST,value = "/insert") public void insert(@RequestBody User user){ userService.insert(user); 阅读全文
posted @ 2021-01-27 10:34 离人怎挽_wdj 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 报错信息如下 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'requestMappingHandlerAdapter' defined in class 阅读全文
posted @ 2021-01-26 19:13 离人怎挽_wdj 阅读(3605) 评论(0) 推荐(0) 编辑
摘要: 遇到的问题 解决方案: 参考链接:https://blog.csdn.net/m0_37876935/article/details/105464081 阅读全文
posted @ 2021-01-26 17:06 离人怎挽_wdj 阅读(1436) 评论(0) 推荐(0) 编辑
摘要: ####1、springboot jdbc操作数据库 最简单方式 pom.xml添加依赖 dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> 阅读全文
posted @ 2021-01-25 19:23 离人怎挽_wdj 阅读(47) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-01-25 17:09 离人怎挽_wdj 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 1、springboot jdbc操作数据库 最简单方式 pom.xml添加依赖 dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </d 阅读全文
posted @ 2021-01-25 15:01 离人怎挽_wdj 阅读(57) 评论(0) 推荐(0) 编辑
摘要: #等待返回,设置callback为Trueimport subprocess def executeshell_by_call(command, callback=False): """ 执行shell命令 必须加上close_fds=True,否则子进程会一直存在 """ if callback: 阅读全文
posted @ 2020-12-22 16:13 离人怎挽_wdj 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 列出所有标签 git tag 通配符过滤标签 git tag -l "v1.0.0-RC5*" 新建tag git tag tagName 创建带备注得tag git tag -a v1.0.1 -m "my tag" 推送tag到远程 git push origin v1.0 删除tag 本地删除 阅读全文
posted @ 2020-12-15 19:02 离人怎挽_wdj 阅读(68) 评论(0) 推荐(0) 编辑
摘要: import requests from lxml import html etree = html.etree from bs4 import BeautifulSoup url = "https://mp.weixin.qq.com/s/drle9K4jgVWxm4v14ETbpQ" respo 阅读全文
posted @ 2020-12-11 09:44 离人怎挽_wdj 阅读(78) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-12-09 14:31 离人怎挽_wdj 阅读(0) 评论(0) 推荐(0) 编辑
摘要: url_str = 'https://www.tenable.com/plugins/feeds?sort=updated' respose_str = requests.get(url_str) print(respose_str.text) soup = BeautifulSoup(respos 阅读全文
posted @ 2020-12-07 15:41 离人怎挽_wdj 阅读(68) 评论(0) 推荐(0) 编辑
摘要: from bs4 import BeautifulSoup import requests import random def get_ip_list(url, headers): web_data = requests.get(url, headers=headers) print(web_dat 阅读全文
posted @ 2020-12-02 16:57 离人怎挽_wdj 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 网上经常看到一些关于线程安全的错误观点诸如: Python list、set 等非线程安全,而消息队列Queue线程安全,这是非常危险的大错特错的认识!!! 在Python中,线程安全是针对操作的原子性的,与对象无关 1.什么是线程安全? 首先,线程安全不是针对对象的,所以不能说Queue是线程安全 阅读全文
posted @ 2020-11-20 15:57 离人怎挽_wdj 阅读(212) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-11-12 11:28 离人怎挽_wdj 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 在本地找到一个目录,执行 git clone http://gitlab.xxxxx.com/xxxxx/xxxxx.git cd xxxxx/ git log //找到对应版本的SHA值 例如2b1c225dcbbc4e1da11164af945344d88bc8f559 git checkout 阅读全文
posted @ 2020-10-23 11:13 离人怎挽_wdj 阅读(964) 评论(0) 推荐(0) 编辑
摘要: from flask import Flask,request from apscheduler.schedulers.background import BackgroundScheduler from apscheduler.executors.pool import ProcessPoolEx 阅读全文
posted @ 2020-09-16 14:49 离人怎挽_wdj 阅读(184) 评论(0) 推荐(0) 编辑
摘要: from flask import Flask,render_template,request from geventwebsocket.handler import WebSocketHandler from gevent.pywsgi import WSGIServer import json 阅读全文
posted @ 2020-09-16 14:33 离人怎挽_wdj 阅读(306) 评论(0) 推荐(1) 编辑
摘要: import pymysql,random,datetime conn = pymysql.connect(database="wetest", user="bms", password="bms@2018", host="123.156.187.154", port=3306,charset="u 阅读全文
posted @ 2020-07-17 10:17 离人怎挽_wdj 阅读(729) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-07-16 16:35 离人怎挽_wdj 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-07-16 16:07 离人怎挽_wdj 阅读(0) 评论(0) 推荐(0) 编辑
摘要: docker-compose version: "3" services: user-dashboard: build: . volumes: - .:/data/code/ - /proc:/writable-proc ports: - "8891:8891" networks: - walkof 阅读全文
posted @ 2020-06-05 19:52 离人怎挽_wdj 阅读(211) 评论(0) 推荐(0) 编辑
摘要: post 请求 (Content-Type: application/json) 1.c = request.get_data() 可以获取未经处理过的原始数据而不管内容类型,如果数据格式是json的,则取得的是json字符串,排序和请求参数一致 2.c =request.get_json() 将请 阅读全文
posted @ 2020-05-28 17:34 离人怎挽_wdj 阅读(245) 评论(0) 推荐(0) 编辑
摘要: .gitignore文件是用来忽略开发者想忽略掉的文件或目录,如果没有.gitignore文件,可以自己手工创建。在.gitignore文件中的每一行保存一个匹配的规则。 新建的文件在git中会有缓存,如果某些文件已经被纳入了版本管理中,就算是在.gitignore中已经声明了忽略路径也是不起作用的 阅读全文
posted @ 2020-04-24 15:30 离人怎挽_wdj 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Django如果开启了Time Zone功能,则所有的存储和内部处理,甚至包括直接print显示全都是UTC的。只有通过模板进行表单输入/渲染输出的时候,才会执行UTC本地时间的转换。 所以我建议后台处理时间的时候,最好完全使用UTC,不要考虑本地时间的存在。而显示时间的时候,也避免手动转换,尽量使 阅读全文
posted @ 2020-04-22 18:03 离人怎挽_wdj 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 安装apscheduler 模块 pip install apscheduler pip install django-apscheduler 将 django-apscheduler 加到项目中settings的INSTALLED_APPS中 INSTALLED_APPS = [ .... 'dj 阅读全文
posted @ 2020-04-21 20:46 离人怎挽_wdj 阅读(8077) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页