摘要: 前提是在开发工具中能正常运行,maven打包后无法运行。 打包后,进入打包文件路径 在dos下输出 java -version 显示jdk版本后,再 java -jar xxxx.jar xxxx为你打包后的jar名称 解决办法有 1 在maven的pom.xml文件中,增加以下依赖 <parent 阅读全文
posted @ 2019-07-10 11:18 javahepeng 阅读(6044) 评论(0) 推荐(0) 编辑
摘要: 创建本地分支 拉取远程分支到本地 进行代码更新 然后 commit 然后将本地代码推送到远程分支 再发起合入请求 使用elipse 提交合入代码时, 注意push 提交远程分支时, 选择中 要选择 如果选择 merge 在发起合入请求,会有很多覆盖,给代码合入造成不便,切记,切记。 阅读全文
posted @ 2023-01-03 15:02 javahepeng 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 在project 标签内,新增一下内容 <build> <plugins> <!--打包项目--> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactI 阅读全文
posted @ 2021-06-08 10:01 javahepeng 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 在Spring Boot项目中,出现这个错误有两种情况: 一,在main方法所在的类忘记添加@SpringBootApplication 二,缺少依赖,添加即可 1 2 3 4 <dependency> <groupId>org.springframework.boot</groupId> <art 阅读全文
posted @ 2021-06-04 12:11 javahepeng 阅读(289) 评论(0) 推荐(0) 编辑
摘要: import datetimedef get_Next_day(count): today = datetime.datetime.today().date() for i in range(count): next_week_start = today + datetime.timedelta(d 阅读全文
posted @ 2021-02-23 16:33 javahepeng 阅读(158) 评论(0) 推荐(0) 编辑
摘要: npm ERR! iview-admin@1.3.1 dev: `webpack-dev-server --content-base ./ --open --inline --hot --compress --config build/webpack.dev.config.js` npm ERR! 阅读全文
posted @ 2020-11-06 10:11 javahepeng 阅读(842) 评论(0) 推荐(0) 编辑
摘要: import xlrdfrom xlrd import xldate_as_tuplefrom IPScriptUtil import *from serverTest import *import reimport datetime'''xlrd中单元格的数据类型数字一律按浮点型输出,日期输出成一 阅读全文
posted @ 2020-07-10 16:37 javahepeng 阅读(733) 评论(0) 推荐(0) 编辑
摘要: public class test { public static void main(String[] args) { // TODO Auto-generated method stub String ipsearch="11.168.1.101-103/126/129/200-204"; ip 阅读全文
posted @ 2020-07-10 11:54 javahepeng 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 引入mongo-java-driver-3.0.4 jar 工具类 //mongodb 连接数据库工具类public class MongoDBUtil { //不通过认证获取连接数据库对象 public static MongoDatabase getConnect(String database 阅读全文
posted @ 2020-07-08 15:42 javahepeng 阅读(1391) 评论(0) 推荐(0) 编辑
摘要: Error connecting to the Service Control Manager: 拒绝访问 Mongodb问题-解决 发现在mongodb.log里出现 2017-07-07T17:01:55.339+0800 I CONTROL [main] Error connecting to 阅读全文
posted @ 2020-07-02 17:24 javahepeng 阅读(898) 评论(0) 推荐(0) 编辑
摘要: public class Test{ public static volatile int t = 0; //如果没有下面的全局锁标识,则结果不一定为10*1000 public static String lock="1"; public static void main(String[] arg 阅读全文
posted @ 2020-01-16 16:52 javahepeng 阅读(139) 评论(0) 推荐(0) 编辑