-
大小: 93KB文件类型: .zip金币: 1下载: 0 次发布日期: 2021-05-10
- 语言: 其他
- 标签: mongodb java springboot
资源简介
mongodb版本号3.2,需手动开启http服务,启动时使用命令 ./mongod --httpinterface
新增 修改 删除 查询 排序 分页
可查看: https://blog.csdn.net/m0_37132783/article/details/96992439
代码片段和文件信息
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License Version 2.0 (the
“License“); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing
software distributed under the License is distributed on an
“AS IS“ BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.util.Properties;
public class MavenWrapperDownloader {
/**
* Default URL to download the maven-wrapper.jar from if no ‘downloadUrl‘ is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL =
“https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar“;
/**
* Path to the maven-wrapper.properties file which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
“.mvn/wrapper/maven-wrapper.properties“;
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
“.mvn/wrapper/maven-wrapper.jar“;
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = “wrapperUrl“;
public static void main(String args[]) {
System.out.println(“- Downloader started“);
File baseDirectory = new File(args[0]);
System.out.println(“- Using base directory: “ + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if (mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL url);
} catch (IOException e) {
Syst
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-07-23 10:55 mongo\
文件 333 2019-07-22 16:23 mongo\.gitignore
目录 0 2019-07-23 14:17 mongo\.idea\
文件 806 2019-07-22 16:24 mongo\.idea\compiler.xm
文件 209 2019-07-22 16:24 mongo\.idea\encodings.xm
目录 0 2019-07-22 16:23 mongo\.idea\inspectionProfiles\
文件 1444 2019-07-22 16:23 mongo\.idea\inspectionProfiles\Project_Default.xm
目录 0 2019-07-23 10:55 mongo\.idea\libraries\
文件 568 2019-07-22 16:24 mongo\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
文件 547 2019-07-22 16:24 mongo\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
文件 514 2019-07-23 10:55 mongo\.idea\libraries\Maven__com_alibaba_fastjson_1_2_54.xm
文件 546 2019-07-22 16:24 mongo\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xm
文件 700 2019-07-22 16:24 mongo\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 611 2019-07-22 16:24 mongo\.idea\libraries\Maven__javax_annotation_javax_annotation_api_1_3_2.xm
文件 455 2019-07-22 16:24 mongo\.idea\libraries\Maven__junit_junit_4_12.xm
文件 536 2019-07-22 16:24 mongo\.idea\libraries\Maven__net_bytebuddy_byte_buddy_1_9_13.xm
文件 578 2019-07-22 16:24 mongo\.idea\libraries\Maven__net_bytebuddy_byte_buddy_agent_1_9_13.xm
文件 542 2019-07-22 16:24 mongo\.idea\libraries\Maven__net_minidev_accessors_smart_1_2.xm
文件 507 2019-07-22 16:24 mongo\.idea\libraries\Maven__net_minidev_json_smart_2_3.xm
文件 573 2019-07-22 16:24 mongo\.idea\libraries\Maven__org_apache_logging_log4j_log4j_api_2_11_2.xm
文件 608 2019-07-22 16:24 mongo\.idea\libraries\Maven__org_apache_logging_log4j_log4j_to_slf4j_2_11_2.xm
文件 542 2019-07-22 16:24 mongo\.idea\libraries\Maven__org_assertj_assertj_core_3_11_1.xm
文件 532 2019-07-22 16:24 mongo\.idea\libraries\Maven__org_hamcrest_hamcrest_core_1_3.xm
文件 553 2019-07-22 16:24 mongo\.idea\libraries\Maven__org_hamcrest_hamcrest_library_1_3.xm
文件 542 2019-07-22 16:24 mongo\.idea\libraries\Maven__org_mockito_mockito_core_2_23_4.xm
文件 479 2019-07-22 20:06 mongo\.idea\libraries\Maven__org_mongodb_bson_3_8_2.xm
文件 549 2019-07-22 20:06 mongo\.idea\libraries\Maven__org_mongodb_mongodb_driver_3_8_2.xm
文件 584 2019-07-22 20:06 mongo\.idea\libraries\Maven__org_mongodb_mongodb_driver_core_3_8_2.xm
文件 508 2019-07-22 16:24 mongo\.idea\libraries\Maven__org_objenesis_objenesis_2_6.xm
文件 472 2019-07-22 16:24 mongo\.idea\libraries\Maven__org_ow2_asm_asm_5_0_4.xm
文件 524 2019-07-22 16:24 mongo\.idea\libraries\Maven__org_projectlombok_lombok_1_18_8.xm
............此处省略71个文件信息
相关资源
- springboot PPT分享
- 设计学生类Student,属性:编号整型;
-
xm
l——sax解析 极速入门易懂 - SpringBoot授课讲义.pdf
- 英汉电子小词典程序
- 基于springBoot2.0以上的微信分享接口后
- spring-websocket实时统计报表
- J2ME游戏开发射击
- JS_touch事件dom元素对象垂直滑动与水平
- SpringBoot2.0整合Elasticsearch6.0使用Elast
- spring boot+thymeleaf+bootstrap 简单实现后台
- js实现页面展示图片
- DFA模拟程序
- 尚硅谷SpringBoot视频 ,百度网盘分享链
- SpringCloud基于SpringBoot 分布式服务实现
- 用友春招最新资料
- SpringBoot实战Spring Boot in Action中文高清
- 安卓开发小程序课程设计
- gps 读取卫星星历文件计算卫星位置
- Echarts安徽省地图案例最新版
- springboot工程基于netty-socketio的 web推送
- 基于eclipse平台开发手机通讯录
- SpringBoot整合发送邮件
- SpringBoot与Shiro整合-权限管理实战视频
- spring boot全套视频2018年新录
- SpringBoot Demo非maven
- 尚硅谷springboot视频.txt
- 手机版三国战记游戏源码带开发文档
- 局域网P2P资源共享软件的设计与实现
- springboot2 与activiti7官方
评论
共有 条评论