maven

人脸识别SpringBoot快递代取平台系统 珍贵的一次开发经验分享给大家

两盒软妹~` 提交于 2021-01-23 10:56:37
最近上海理工大学光电学院的拉吉研究生张逸风全家出了车祸,他妈妈住进了ICU脑袋也不好使了,他爹害也不好意思过世了,这孩子挺坚强的,媳妇被人绿了,自己也住进去了,他委托我帮他开发一个系统,帮他圆梦,因此我开始了如下的创作,帮大家快速入门开发,奥利给 相关技术栈 前端: Thymeleaf、Bootstrap、Ajax、JQuery 开发环境: IDEA 、SpringBoot 2.1、Maven 数据库与缓存 :MySQL 5.7、Redis、Guava Cache 三方服务 :阿里云云短信服务、支付宝支付(沙箱)、百度人脸识别 安全框架 :Spring Security 其他技术 :API 接口限速、二级缓存 主要功能 登陆与注册: 用户名密码、短信验证码、人脸识别登录、QQ登录 权限: 普通用户、配送员、后台管理员 普通用户 :下单支付、订单查询、意见反馈、订单评价 配送员 :接单、订单管理、意见反馈、订单评价 系统管理员 :用户管理、订单管理、反馈管理 核心代码解析 短信接口代码解析 public SendSmsResponse sendSms(String mobile,String template_code,String sign_name,String param) throws ClientException { // String accessKeyId =env

mvn dependency:tree 使用详解

亡梦爱人 提交于 2021-01-22 21:13:02
Maven Dependency插件Goal tree分析工程artifacts依赖 来自 https://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html 常用Optional Parameters 常用参数,可在命令行中作用 -D参数名=参数值指定 appendOutput:追加输出,而不是覆盖 excludes,includes:通过逗号分离,格式[groupId]:[artifactId]:[type]:[version],支持通配符* outputFile:指定输出文件路径 outputType:指定输出文件格式,默认text,还支持dot,graphml,tgf 输出工程依赖关系 mvn dependency:tree 重定向至文本文件 mvn dependency:tree -D outputFile=dependency_tree.txt mvn dependency:tree -Dverbose -D outputFile=dependency_tree.txt graphml格式,可使用Gephi打开,官网链接 https://gephi.org/ 或者使用yWorks的GraphMLViewer,需要嵌入浏览器中,这个比较小,只有1.1MB,https://www.yworks

datax 编译安装

我的未来我决定 提交于 2021-01-22 17:44:00
1.centos系统maven安装参考 https://www.cnblogs.com/laoayi/p/12867990.html 1.下载 官网地址: http://maven.apache.org/download.cgi curl -O https://mirror.bit.edu.cn/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz 2.解压 tar -zxvf apache-maven-3.6.3-bin.tar.gz 3.修改环境变量 vim /etc/profile export MAVEN_HOME=/opt/maven/apache-maven-3.6.3 export PATH=$MAVEN_HOME/bin:$PATH source /etc/profile //使用环境变量生效 4.查看是否成功安装 mvn -version [root@ambari-03 maven]# mvn -version Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /opt/maven/apache-maven-3.6.3 Java version: 1.8.0_181, vendor:

用Java实现每天给对象发情话

馋奶兔 提交于 2021-01-22 15:20:09
Python实战社群Java实战社群长按识别下方二维码,按需求添加扫码关注添加客服进Python社群▲扫码关注添加客服进Java社群▲ 作者丨清茶淡粥 来源: https://blog.csdn.net/qq_33758782/article/details/111409931 一、引言 最近看到一篇用js代码实现表白的文章,深有感触。 然后发现自己也可以用java代码实现,然后就开始写代码了,发现还挺有意思的,话不多说开搞 实现思路: 使用HttpClient远程获取彩虹屁生成器网站中的内容 网站:https://chp.shadiao.app/ java Mail 实现发送邮件 SpringBoot 整合Scheduled 实现定时发送邮件 二、搭建项目 项目环境在SpringBoot框架基础上,加入邮件发送mail、RPC远程调用httpclient、Scheduled 的一个Maven项目,依赖如下: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.2.RELEASE</version> </parent> <dependencies> <dependency> <groupId>org

Maven项目POM文件错误,提示“Plugin execution not covered by lifecycle configuration”的解决方案

好久不见. 提交于 2021-01-22 08:47:00
Maven项目POM文件错误,提示“Plugin execution not covered by lifecycle configuration”的解决方案 参考文章: (1)Maven项目POM文件错误,提示“Plugin execution not covered by lifecycle configuration”的解决方案 (2)https://www.cnblogs.com/AmilyLin/p/amilyLin.html 备忘一下。 来源: oschina 链接: https://my.oschina.net/u/4352597/blog/4919029

How to exclude test dependencies from a shaded maven jar?

删除回忆录丶 提交于 2021-01-22 06:34:27
问题 I'm using the maven-shade-plugin and I'd like to exclude not only my test code, but my test dependencies in the shaded jar. I realize I can specifically exclude certain artifacts (like junit), but that's a good bit of work and prone to some error most likely. I'm setting minimizeJar to true, but I still see my Junit and Mockito dependencies showing up. Is there just no way to exclude all test scoped dependencies via configuration? 回答1: Make sure your test dependencies in the test scope:

How to exclude test dependencies from a shaded maven jar?

蹲街弑〆低调 提交于 2021-01-22 06:33:24
问题 I'm using the maven-shade-plugin and I'd like to exclude not only my test code, but my test dependencies in the shaded jar. I realize I can specifically exclude certain artifacts (like junit), but that's a good bit of work and prone to some error most likely. I'm setting minimizeJar to true, but I still see my Junit and Mockito dependencies showing up. Is there just no way to exclude all test scoped dependencies via configuration? 回答1: Make sure your test dependencies in the test scope:

IDEA使用Alibaba Cloud Toolkit 发布SpringBoot项目到云服务器

拥有回忆 提交于 2021-01-21 19:11:50
软件安装 1.打开 File->Plugins->Marketplace 2.搜索 Alibaba Cloud Toolkit 3.安装成功后重启IDEA 我们可以看到Tools有Alibaba Cloud 选项了,而我们需要用的是Deploy to Host...这个功能 配置服务器 点击 Deploy to Host ,如果你之前没有配置过服务器SSH信息,这里需要先进行配置 配置发布信息 因为服务器上没有安装Maven,我这里利用IDEA打包后,将包上传到服务器指定路径 maven打包指令 clean package -Dmaven.test.skip=true jar包备份(这里我们备份jar包名加上时间戳) mv /usr/local/yee-admin/yee-admin.jar /usr/local/yee-admin/yee-admin-`date +%Y%m%d-%H%M%S`.jar 查看日志指令 tail -200f /data/logs/yee-admin/info.log 执行发布 可以看到首先执行Maven打包 打包成功之后,上传jar到服务器 上传成功之后执行了service.sh脚本,我们可以看到远程服务器上的启动日志 我们登录服务器,服务正常启动,同时原先的jar包也已经备份好了 服务启动脚本service.sh,根据实际情况修改 #!/usr

Eclipse Maven: SLF4J: Class path contains multiple SLF4J bindings

允我心安 提交于 2021-01-21 10:03:32
问题 I got this error when trying to run as Maven Build. Could someone please help me resolve the binding conflicts, thanks. SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/Applications/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [file:/Applications/Eclipse.app/Contents/Eclipse/configuration/org.eclipse.osgi/5

Mounting Maven Repository to Docker

∥☆過路亽.° 提交于 2021-01-21 09:32:34
问题 I am trying to build a Java application and make a package using docker. This builds needs a maven repository which I don't want to include in the image, since it's very large. I wanted to try using volumes and mount my local maven repository to the maven repository in the image. I used apt-get install -y maven in order to have maven available, but I can't find the directory .m2 in the image $HOME . I used ls -la $HOME , ls -la and ls -la /root to find the maven home, but there is no .m2