Maven集成找不到tomcat8-maven-plugin插件
报错当你在pom.xml中加tomcat8-maven-plugin插件时会发现报Could not find artifact org.apache.tomcat.maven:tomcat8-maven-plugin:pom:in nexus-aliyun
原因因为在阿里云镜像中找不到该插件,在Maven的中央仓库中也没有找到tomcat8-maven-plugin的plugin
解决方法看了许多教程都是让你去重新配置镜像,或者是让你去官网下载然后导进项目中,但是我们既然用了maven就是为了减少手动导入的麻烦。所以我们需要使用Maven中plugin的Repositories这个是用来配置插件地址的,因为maven的所有功能都是使用插件来实现功能的,因此需要从特定的地址下载插件包,在pom.xml中加入下面的代码即可,因为是外网所以下载会很慢,但是能成功解决找不到插件问题。123456789101112131415161718<pluginRepositories> <pluginRepository> <id&g ...
把个人卡片修改成iPhone14Pro样式
预览效果查看效果
魔改源码在themes\butterfly\layout\includes\widget\card_author.pug中第2行添加代码,注意要把“+”去掉123456789101112if theme.aside.card_author.enable+ .card-widget.card-info+ .iPhone-14-pro+ .screen+ .wrapper+ .dynamic-island+ .avater .is-center .avatar-img img(src=url_for(theme.avatar.img) onerror=`this.onerror=null;this.src='` + url_for(theme.error_img.flink) + `'` alt="avatar") .author-info__name= config.author .author-in ...
测试md写html网页
Document
* {
margin: 0;
padding: 0;
}
html {
height: 100%;
}
body {
height: 100%;
}
.container {
height: 100%;
background-image: linear-gradient(to right, #fbc2eb, #a6c1ee);
}
.login-wrapper {
background-color: #fff;
width: 358px;
height: 588px;
border-radius: 15px;
padding: ...
让博客适配Safari书签页和iOS桌面图标
前言发现很多人的网站并没有对Safari进行一个适配,导致使用iOS的小伙伴在收藏这些网站或者将这些网站添加到桌面时样式比较奇怪,于是我参考了张洪老师的教程对自己的网站进行适配Safari。
效果预览查看效果
适配方法Safari提供了自定义的方案。下面这个链接是官方文档。
引用站外地址
Configuring Web Applications
Apple
然后在自己博客目录下的_config.butterfly.yml或_config.yml的inject的head标签中添加以下代码即可。1234- <link rel="apple-touch-icon" href="https://img1.imgtp.com/2022/10/14/rGxKfXmY.jpg">- <meta name="apple-mobile-web-app-title" ...
Java连接Mysql常见问题
java.sql.SQLSyntaxErrorException: Unknown database报错问题
emoji
🦎🦝🦧标签与分类https://blog.eurkon.com/post/65b72006.htmlhttps://blog.jayhrn.com/categories/%E9%AD%94%E6%94%B9%E6%95%99%E7%A8%8B/