摘要:
最近用maven打包springboot项目时,将打好的jar包运行,报错:找不在main主清单 原来是项目的pom.xml中没有指定项目启动的main方法导致,解决方法如下 在pom.xml中加入如下节点 阅读全文
摘要:
因为近期项目需要使用php,需要搭建apache环境,记录一下 apache2.4网盘下载地址 链接:http://pan.baidu.com/s/1dFvpHkP 密码:9zc2 1. 解压到安装包到 D:Apache24文件夹下(放到磁盘根路径下) 2. 进入Apache24\conf目录下打开 阅读全文
摘要:
<h2>start -- ${start}</h2><h2>end -- ${end}</h2><fmt:formatDate var="endDay" type="date" value="${start}" /><fmt:formatDate var="startDay" type="date" 阅读全文
摘要:
在忘记root密码的时候,可以这样 1. 关闭正在运行的MySQL服务。 2. 打开DOS窗口,转到mysql\bin目录。 3. 输入mysqld --skip-grant-tables 回车。--skip-grant-tables 的意思是启动MySQL服务的时候跳过权限表认证。 4. 再开一个 阅读全文
摘要:
本文介绍如何在Linux服务器下配置springboot项目服务 1.新建一个.service文件(我这边命名为test.service,其中test为服务名) 内容如下 [Unit]Description=testAfter=syslog.target [Service]ExecStart=/ho 阅读全文
摘要:
1.定义css样式<style type="text/css"> a.popup{position:relative;} a.popup span{display:none;position:absolute;top:-40px;left:2px;z-index: 99;border: 1px so 阅读全文
摘要:
public class Test { public static void main(String[] args) throws Exception { CityModel city1 = new CityModel(); city1.setCity_code(1); CityModel city 阅读全文
摘要:
进入nginx配置文件路径 cd /usr/local/nginx/conf/ 修改 文件 nginx.conf 内容如下 upstream tomcat8080_api { server 66.666.666.666:8080 weight=1; } server { listen 80; ser 阅读全文
摘要:
springboot项目的配置文件有properties类型和yml类型 注意: properties类型的配置文件中 配置项的key和value中间用 = 号连接 yml类型的配置文件中 配置项的key和value中间用 : 号连接 随手记一下........ 阅读全文
摘要:
import java.io.UnsupportedEncodingException;import java.security.MessageDigest;import java.security.NoSuchAlgorithmException; /** * SHA256 摘要算法工具类 * @ 阅读全文