Here

如何在特定位置打开cmd窗口?

本小妞迷上赌 提交于 2020-02-27 07:18:36
如何在特定位置打开cmd窗口,而无需一直导航到我想要的目录? #1楼 在Windows Vista,Windows 7和Windows 10上,只需按住Shift键并右键单击文件夹即可。 上下文菜单将包含一个标题为“在此处打开命令窗口”的条目 更新: 在资源管理器的地址栏中输入 “cmd”,然后按Enter键 更新2: 在Windows 10中,转到文件菜单并选择“打开Windows PowerShell”。 有一个以 管理员 身份运行的选项。 #2楼 在Windows资源管理器中 - 按住Shift键并右键单击文件夹“打开命令窗口”选项显示在菜单中。 或者使用Windows版本的语言。 #3楼 右键单击桌面并导航到新建,然后从子菜单中选择“快捷方式”→浏览到Windows目录(或文件夹),然后再到 system32 目录并单击“ 确定” 。 将 \\ 和“cmd.exe”(不带引号)添加到命令字符串。 它应该如下所示: C:\WINDOWS\System32\cmd.exe. 单击下一步并完成 。 右键单击桌面上的新CMD图标,然后选择属性, 然后单击“开始” 旁边的。 在选项中,删除该行并将路径添加到您希望它开始的目录所在的位置...例如, C:\\temp\\mp3 并单击“ 确定” 。 #4楼 更新 :现在内置于Windows中。 看到 这个答案 。 XP

ZhaoWei-2020-02-02

◇◆丶佛笑我妖孽 提交于 2020-02-27 05:39:01
上传文件到码云 如果有仓库管理员的用户密码,在网页上就有上传文件的按钮,如果不是管理员或者超过上传文件个数限制(码云限制一个小时内不超过20个),就用到git工具了, 第一步创建仓库 在本地文件夹拉去仓库的数据, 在想要拉取文件的位置,就是文件夹里面,点击鼠标右键,选择git bash here, 3. 然后在窗口输入 git init 这时候文件夹会多出一个.git文件夹,看不到文件夹的,点击鼠标右键选择“显示不显示隐藏的文件”就可以看到这个文件夹了 4. 输入git remote add origin + 加上码云仓库的路径, 再 输入 git pull origin master 命令,将码云上的仓库pull到本地文件夹 码云仓库的路径是这个 下图是已经将码云上的仓库pull到本地文件夹 5. 将自己想要上传的代码或文件放到刚才拉下来的仓库里,之后就可以推上去, 使用git add . (. 表示所有的)或者 git add + 文件名 将文件保存到缓存区 使用git commit -m '新添加的文件内容描述' 使用git push origin master ,将本地仓库推送到远程仓库 上图是成功的结果,如果不成功,会报一个错 failed to push some refs to git 这个错就是本地文件和仓库有冲突, 可以通过如下命令进行代码合并 git pull

ZhaoWei-2020-02-02

二次信任 提交于 2020-02-27 05:13:58
上传文件到码云 如果有仓库管理员的用户密码,在网页上就有上传文件的按钮,如果不是管理员或者超过上传文件个数限制(码云限制一个小时内不超过20个),就用到git工具了, 第一步创建仓库 在本地文件夹拉去仓库的数据, 在想要拉取文件的位置,就是文件夹里面,点击鼠标右键,选择git bash here, 3. 然后在窗口输入 git init 这时候文件夹会多出一个.git文件夹,看不到文件夹的,点击鼠标右键选择“显示不显示隐藏的文件”就可以看到这个文件夹了 4. 输入git remote add origin + 加上码云仓库的路径, 再 输入 git pull origin master 命令,将码云上的仓库pull到本地文件夹 码云仓库的路径是这个 下图是已经将码云上的仓库pull到本地文件夹 5. 将自己想要上传的代码或文件放到刚才拉下来的仓库里,之后就可以推上去, 使用git add . (. 表示所有的)或者 git add + 文件名 将文件保存到缓存区 使用git commit -m '新添加的文件内容描述' 使用git push origin master ,将本地仓库推送到远程仓库 上图是成功的结果,如果不成功,会报一个错 failed to push some refs to git 这个错就是本地文件和仓库有冲突, 可以通过如下命令进行代码合并 git pull

How to Create a Docker Image From a Container

雨燕双飞 提交于 2020-02-27 03:48:22
In this article, I’ll provide step-by-step instructions on how to create a Docker container, modify its internal state, and then save the container as an image. This is really handy when you’re working out how an image should be constructed because you can just keep tweaking a running container until it works like you want it to. When you’re done, just save it as an image. Okay, let’s jump right into it. Step 1: Create a Base Container Let’s get started by creating a running container . So that we don’t get bogged down in the details of any particular container, we can use nginx . The Docker

Java – Try with Resources

给你一囗甜甜゛ 提交于 2020-02-27 03:10:47
1. Overview Support for try-with-resources – introduced in Java 7 – allows us to declare resources to be used in a try block with the assurance that the resources will be closed when after the execution of that block. The resources declared must implement the AutoCloseable interface. 2. Using try-with-resources Simply put, to be auto-closed, a resource must be both declared and initialized inside the try , as shown below: 1 2 3 try (PrintWriter writer = new PrintWriter( new File( "test.txt" ))) { writer.println( "Hello World" ); } 3. Replacing try – catch-finally With try-with-resources The

Using Custom Banners in Spring Boot

£可爱£侵袭症+ 提交于 2020-02-26 17:19:44
1. Overview By default, Spring Boot comes with a banner which shows up as soon as the application starts. In this article, we'll learn how to create a custom banner and use it in Spring Boot applications. 2. Creating a Banner Before we start, we need to create the custom banner which will be displayed at the time of application start-up time. We can create the custom banner from scratch or use various tools that will do this for us. In this example we used Baeldung's official logo: However, in some situation, we might like to use the banner in the plain text format since it's relatively easier

Shutdown a Spring Boot Application

a 夏天 提交于 2020-02-26 15:04:58
1. Overview Managing the lifecycle of Spring Boot Application is very important for a production-ready system. The Spring container handles the creation, initialization, and destruction of all the Beans with the help of the ApplicationContext. The emphasize of this write-up is the destruction phase of the lifecycle. More specifically, we'll have a look at different ways to shut down a Spring Boot Application. To learn more about how to set up a project using Spring Boot, check out the Spring Boot Starter article, or go over the Spring Boot Configuration . 2. Shutdown Endpoint By default, all

生成 arm架构的docker compose

孤街浪徒 提交于 2020-02-26 12:18:27
I had built it on my Raspberry Pi 3 Model B Rev 1.2 with Raspbian10 (buster) [arm/v7]. You can try to do it on your Raspberry Pi 4. pi@raspberrypi:~ $ git clone https://github.com/docker/compose.git pi@raspberrypi:~ $ cd compose/ pi@raspberrypi:~/compose $ git checkout -f 1.25.0 pi@raspberrypi:~/compose $ sudo docker build -t dockercompose:1.25.0 . pi@raspberrypi:~ $ sudo curl -L --fail https://github.com/docker/compose/releases/download/1.25.0/run.sh -o /usr/local/bin/docker-compose pi@raspberrypi:~ $ sudo chmod +x /usr/local/bin/docker-compose pi@raspberrypi:~ $ sudo sed -i 's/docker\

Intro to Feign

依然范特西╮ 提交于 2020-02-26 11:15:50
1. Overview In this tutorial, we will introduce and explain Feign , a declarative HTTP client developed by Netflix. Feign aims at simplifying HTTP API clients. Simply put, the developer needs only to declare and annotate an interface while the actual implementation will be provisioned at runtime. 2. Example We will present an example of a bookstore service REST API , that is queried and tested based on the Feign HTTP client. Before we build a sample Feign client, we'll add the needed dependencies and startup the REST service. The bookstore service example can be cloned from here . After

Java List Initialization in One Line

不羁岁月 提交于 2020-02-26 08:01:15
1. Introduction In this quick tutorial, we'll investigate how can we initialize a List using one-liners. 2. Create From an Array We can create a List from an array and thanks to array literals we can initialize them in one line: List<String> list = Arrays.asList( new String[]{ "foo" , "bar" }); We can trust the varargs mechanism to handle the array creation. By that, we can write more concise and readable code: @Test public void givenArraysAsList_thenInitialiseList() { List<String> list = Arrays.asList( "foo" , "bar" ); assertTrue(list.contains( "foo" )); } The result instance of this code