- 博客(10)
- 收藏
- 关注
原创 windows上使用代理podman依然无法拉取docker镜像
修改 /etc/systemd/system.conf.d/default-env.conf 然后重启wsl podman-machine。在windows上已经有代理的情况下,只需要要将wsl上的代理配置指向windows的代理端口。需要说明的是配置的代理需要全局使用。添加到用户环境变量中podman是无法使用的。(设置->Proxy ->填写代理。->update -> 重启wsl podman-machine。在开启代理的情况下,依然无法拉取docker.io下的镜像。wsl2上配置代理。
2024-07-19 07:54:58 738
原创 erlang开发idea导入创建项目
1. 直接通过idea新建一个erlang项目, 该项目是一个普通的erlang项目,没有otp相关的文件。2. 使用rebar3 new app|release appname 创建,│ .gitignore│ LICENSE│ README.md│ rebar.config│└─src demo.app.src demo_app.erl demo_sup.erl然后使用idea打开,打开默认是没modules的需要设置modul
2020-07-11 17:25:56 678
原创 java集合
java集合1.Collection remove()和contains()需要目标类的equalse()方法支持。(在简单java类中实现equals()方法的概率很低)。2.List 可以保存重复数据。1.ArrayList(jdk1.2)是针对于list接口的数组操作实现。 初始化大小可以提高ArrayList的性能。2.Vector是jdk1.0就提出
2017-11-29 11:34:24 241
原创 关于Server Tomcat v9.0 Server at localhost failed to start.的分析
关于Server Tomcat v9.0 Server at localhost failed to start.的分析现象控制台( Console)提示: 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source’ to ‘org.eclipse.jst.jee.server:Serv
2017-11-12 17:05:34 1136
原创 maven配置(阿里云)
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://mave
2017-11-12 17:03:21 276
原创 修改grub2主题修改
1.下载grub主题包主题下载可到这里2.创建themes文件夹$sudo mkdir /boot/grub/themes3.解压并移动到/boot/grub/themes/下$sudo tar -xf 主题包 $sudo cp 主题包名 /boot/grub/themes/4.修改配置文件并gen$sudo gedit /etc/grob.d/00_heander #在注释下添加GRUB-
2017-11-12 17:01:32 3783
原创 配置git和github
1.Setting up Git(配置git)#1.Download and install the latest version of Git.#下载并安装最新的git#2.On your computer, open the Terminal application.#在你的电脑上,打开命令窗口#3.Tell Git your name so your commits will be p
2017-11-12 17:00:14 315
原创 spring+Thymeleaf中文编码的问题
spring+Thymeleaf中文编码的问题参考博客总共设置了三个地方1.SpringResourceTemplateResolver @Bean public SpringResourceTemplateResolver templateResolver() { // SpringResourceTemplateResolver automatically integra
2017-11-12 16:57:10 1815
原创 spring-激活profile(java)
设置激活profile原文链接作为servlet参数package com.mkyong.servlet3;import javax.servlet.ServletContext;import javax.servlet.ServletException;public class MyWebInitializer extends AbstractAnnotationConfigDispat
2017-11-12 16:54:54 790 2
原创 spring test
Spring MVC Test Framework (部分)官方文档地址Server-Side TestsThere are two main options for creating an instance of MockMvc. The first is to load Spring MVC configuration through the TestContext framework, whi
2017-08-14 19:04:03 359
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人