问题描述
.properties文件乱码

解决方案
Preferences –> Editor –> File Encodings


https://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html
1 | <plugin> |
Full name:
org.apache.maven.plugins:maven-dependency-plugin:3.3.0:purge-local-repository
Description:
When run on a project, remove the project dependencies from the local repository, and optionally re-resolve them. Outside of a project, remove the manually given dependencies.
Attributes:
2.0.| Name | Type | Since | Description |
|---|---|---|---|
<actTransitively> |
boolean |
2.0 |
Whether this mojo should act on all transitive dependencies. Default value is true. Default value is: true. User property is: actTransitively. |
<exclude> |
String |
2.0 |
Comma-separated list of groupId:artifactId entries, which should be used to exclude artifacts from deletion/refresh. This is a command-line alternative to the excludes parameter, since List parameters are not currently compatible with CLI specification. User property is: exclude. |
<excludes> |
List |
2.0 |
The list of dependencies in the form of groupId:artifactId which should NOT be deleted/refreshed. |
<include> |
String |
2.6 |
Comma-separated list of groupId:artifactId entries, which should be used to include artifacts for deletion/refresh. This is a command-line alternative to the includes parameter, since List parameters are not currently compatible with CLI specification. User property is: include. |
<includes> |
List |
2.6 |
The list of dependencies in the form of groupId:artifactId which should BE deleted/refreshed. |
<manualInclude> |
String |
2.6 |
Comma-separated list of groupId:artifactId entries, which should be used to manually include artifacts for deletion. This is a command-line alternative to the manualIncludes parameter, since List parameters are not currently compatible with CLI specification. User property is: manualInclude. |
<manualIncludes> |
List |
2.6 |
The list of dependencies in the form of groupId:artifactId which should BE deleted/purged from the local repository. Note that using this parameter will deactivate the normal process for purging the current project dependency tree. If this parameter is used, only the included artifacts will be purged. The manualIncludes parameter should not be used in combination with the includes/excludes parameters. |
<reResolve> |
boolean |
2.0 |
Whether to re-resolve the artifacts once they have been deleted from the local repository. If you are running this mojo from the command-line, you may want to disable this. By default, artifacts will be re-resolved. Default value is: true. User property is: reResolve. |
<resolutionFuzziness> |
String |
2.0 |
Determines how liberally the plugin will delete an artifact from the local repository. Values are: file - Eliminate only the artifact’s file.version (default) - Eliminate all files associated with the version of the artifact.artifactId - Eliminate all files associated with the artifact’s artifactId.groupId - Eliminate all files associated with the artifact’s groupId. Default value is: version. User property is: resolutionFuzziness. |
<skip> |
boolean |
2.7 |
Skip plugin execution completely. Default value is: false. User property is: skip. |
<snapshotsOnly> |
boolean |
2.4 |
Whether to purge only snapshot artifacts. Default value is: false. User property is: snapshotsOnly. |
<verbose> |
boolean |
2.0 |
Whether this plugin should output verbose messages. Default is false. Default value is: false. User property is: verbose. |
Whether this mojo should act on all transitive dependencies. Default value is true.
boolean2.0NoactTransitivelytrueComma-separated list of groupId:artifactId entries, which should be used to exclude artifacts from deletion/refresh. This is a command-line alternative to the excludes parameter, since List parameters are not currently compatible with CLI specification.
java.lang.String2.0NoexcludeThe list of dependencies in the form of groupId:artifactId which should NOT be deleted/refreshed.
java.util.List2.0NoComma-separated list of groupId:artifactId entries, which should be used to include artifacts for deletion/refresh. This is a command-line alternative to the includes parameter, since List parameters are not currently compatible with CLI specification.
java.lang.String2.6NoincludeThe list of dependencies in the form of groupId:artifactId which should BE deleted/refreshed.
java.util.List2.6NoComma-separated list of groupId:artifactId entries, which should be used to manually include artifacts for deletion. This is a command-line alternative to the manualIncludes parameter, since List parameters are not currently compatible with CLI specification.
java.lang.String2.6NomanualIncludeThe list of dependencies in the form of groupId:artifactId which should BE deleted/purged from the local repository. Note that using this parameter will deactivate the normal process for purging the current project dependency tree. If this parameter is used, only the included artifacts will be purged. The manualIncludes parameter should not be used in combination with the includes/excludes parameters.
java.util.List2.6NoWhether to re-resolve the artifacts once they have been deleted from the local repository. If you are running this mojo from the command-line, you may want to disable this. By default, artifacts will be re-resolved.
boolean2.0NoreResolvetrueDetermines how liberally the plugin will delete an artifact from the local repository. Values are:
file - Eliminate only the artifact’s file.
version (default) - Eliminate all files associated with the version of the artifact.
artifactId - Eliminate all files associated with the artifact’s artifactId.
groupId - Eliminate all files associated with the artifact’s groupId.
Type: java.lang.String
Since: 2.0
Required: No
User Property: resolutionFuzziness
Default: version
Skip plugin execution completely.
boolean2.7NoskipfalseWhether to purge only snapshot artifacts.
boolean2.4NosnapshotsOnlyfalseWhether this plugin should output verbose messages. Default is false.
boolean2.0Noverbosefalse1 | # -uroot 用户名 |
1 | # 连接 |
source 命令导入备份文件,需要指定-h指定主机地址,否则遇到错误(找不到主机)会中断导入。使用以下语句导入:
1 | mysql -hlocalhost -P3306 -uroot -proot -Dcloud_followu --default-character-set=utf8 < d:/data/demo.sql |
--default-character-set=utf8指定和导出一样的编码,也是容易出错的地方
在命令行中执行如下命令:
1 | java -cp druid-1.0.16.jar com.alibaba.druid.filter.config.ConfigTools you_password |
输出
1 | privateKey:MIIBVgIBADANBgkqhkiG9w0BAQEFAASCAUAwggE8AgEAAkEA6+4avFnQKP+O7bu5YnxWoOZjv3no4aFV558HTPDoXs6EGD0HP7RzzhGPOKmpLQ1BbA5viSht+aDdaxXp6SvtMQIDAQABAkAeQt4fBo4SlCTrDUcMANLDtIlax/I87oqsONOg5M2JS0jNSbZuAXDv7/YEGEtMKuIESBZh7pvVG8FV531/fyOZAiEA+POkE+QwVbUfGyeugR6IGvnt4yeOwkC3bUoATScsN98CIQDynBXC8YngDNwZ62QPX+ONpqCel6g8NO9VKC+ETaS87wIhAKRouxZL38PqfqV/WlZ5ZGd0YS9gA360IK8zbOmHEkO/AiEAsES3iuvzQNYXFL3x9Tm2GzT1fkSx9wx+12BbJcVD7AECIQCD3Tv9S+AgRhQoNcuaSDNluVrL/B/wOmJRLqaOVJLQGg== |
输入你的数据库密码,输出的是加密后的结果。
1 | <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource" |
有三种方式配置:
1 | @SuppressWarnings("all")public class DecryptDruidSource extends DruidDataSource { |