Spring-boot-project-trial
涉及到的问题:
Spring boot工程基础 使用bootcase工程完成练习。
yaml文件类型的配置使用,可参考spring yaml 默认位置为
/myApplication/src/main/resources/application.yml
支持多环境配置
涉及到的问题:
Spring boot工程基础 使用bootcase工程完成练习。
yaml文件类型的配置使用,可参考spring yaml
默认位置为/myApplication/src/main/resources/application.yml
支持多环境配置
link to JianShu这篇估计因为提到了VPN,至今依然是“仅自己可见”
使用VPN链接公司内网的环境。本地调试链接Redis时是不是会提示:完整log
Introduction to the Build Lifecycle
validate
- validate the project is correct and all necessary information is availablecompile
- compile the source code of the projecttest
- test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployedpackage
- take the compiled code and package it in its distributable format, such as a JAR.verify
- run any checks on results of integration tests to ensure quality criteria are metinstall
- install the package into the local repository, for use as a dependency in other projects locallydeploy
- done in the build environment, copies the final package to the remote repository for sharing with other developers and projects.What is “pom” packaging in maven?
pom
packaging is simply a specification that states the primary artifact is not a war or jar, but the pom.xml itself.
只是一直打包形式,打包为pom文件本身。加入当前目录是做完文档模块存在,显然无法打包为jar
形式。
sudo apt install maven
,配置阿里云镜像。创建 .m2/settings.xml
文件,内容如下——<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
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository />
<interactiveMode />
<usePluginRegistry />
<offline />
<pluginGroups />
<servers />
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
<proxies />
<profiles />
<activeProfiles />
</settings>
从头再来。旧的镜像在我安装gitlab之后Gitlab CE,现在远程登录相当慢。重新初始化了一下镜像。使用强密码策略。
apt-get install -y zsh; sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
apt-get update; apt-get install -y maven git openjdk-8-jdk
ssh-keygen -t rsa -b 4096 -C "e@example.com"
并配置多个key ~/.ssh/config
内容如下Host github.com
# Specifies the real host name to log into. Numeric IP addresses are also permitted.
HostName github.com
# Defines the username for the SSH connection.
User gebitang
# Specifies a file from which the user’s DSA, ECDSA or DSA authentication identity is read.
IdentityFile ~/.ssh/id_rsa_github
Host gitlab.com
# Specifies the real host name to log into. Numeric IP addresses are also permitted.
HostName gitlab.com
# Defines the username for the SSH connection.
User gebitang
# Specifies a file from which the user’s DSA, ECDSA or DSA authentication identity is read.
IdentityFile ~/.ssh/id_rsa