网站
文章平均质量分 54
1
A snicker
努力吧
展开
-
linux 后台运行jar,即关闭界面程序可以后台运行
当前的命令默认会把日志输出到nohup.out文件中nohup java -jar XXX.jar &指定输出文件nohup java -jar XXX.jar >log.out &增加参数,-XX:-UseGCOverheadLimit,关闭这个特性,同时增加heap大小,-Xmx1024mjava -jar -XX:-UseGCOverheadLimit -Xmx2048m BKInsert.jar(1)ps查进程ID[user@data2 ~]$ ps -ef |原创 2022-01-18 14:48:07 · 635 阅读 · 0 评论 -
springboot小项目,设备管理系统,适合练手(源码+SQL)
简单的设备管理系统:本文完整项目的代码:1、项目页面2、数据库方面3、代码目录4、关键代码5、补充功能1、谷歌验证码的实现2、i18n国际化的实现本文完整项目的代码:github:https://github.com/caohanzong/springboot-device-management.gitgitee:https://gitee.com/caohanzong/springboot-device-management.git1、项目页面1、登录页面:注:用户名密码登录,登录完成之后才原创 2021-10-19 11:30:15 · 5124 阅读 · 15 评论 -
1-springmvc04-Jackson的使用
Controller返回JSON数据Jackson应该是目前比较好的json解析工具了当然工具不止这一个,比如还有阿里巴巴的 fastjson 等等我们这里使用Jackson,使用它需要导入它的jar包<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core --><dependency> <groupId>com.fasterxml.jackso原创 2021-09-25 20:42:23 · 64 阅读 · 0 评论 -
1-springmvc04-乱码问题
我们可以在首页编写一个提交的表单<form action="/e/t" method="post"> <input type="text" name="name"> <input type="submit"></form>后台编写对应的处理类@Controllerpublic class Encoding { @RequestMapping("/e/t") public String test(Model model,Str.原创 2021-09-25 17:07:46 · 93 阅读 · 0 评论 -
1-springmvc03-数据处理和数据显示到前端
文章目录处理提交数据数据显示到前端处理提交数据1.提交的域名称和处理方法的参数名一致提交数据 : http://localhost:8080/hello?name=kuangshen处理方法 :@RequestMapping("/hello")public String hello(String name){ System.out.println(name); return "hello";}后台输出 : kuangshen2. 提交的域名称和处理方法的参数名不一致提交数原创 2021-09-25 16:23:21 · 80 阅读 · 0 评论 -
1-springmvc03-转发和重定向
通过SpringMVC来实现转发和重定向 - 无需视图解析器默认为forward转发(也可以加上)redirect转发需特别加@Controllerpublic class ResultSpringMVC { @RequestMapping("/rsm/t1") public String test1(){ //转发 return "/index.jsp"; } @RequestMapping("/rsm/t2") public Stri原创 2021-09-25 15:28:01 · 69 阅读 · 0 评论 -
1-springmvc02-RestFul 风格
传统方式操作资源 :通过不同的参数来实现不同的效果!方法单一,post 和 get http://127.0.0.1/item/queryItem.action?id=1 查询,GET http://127.0.0.1/item/saveItem.action 新增,POST http://127.0.0.1/item/updateItem.action 更新,POST http://127.0.0.1/item/deleteItem.action?id=1 删除,G原创 2021-09-25 14:49:02 · 58 阅读 · 0 评论 -
1-springmvc01-第一个MVC程序
1、配置版新建一个Moudle , springmvc-02-hello , 添加web的支持!确定导入了SpringMVC 的依赖!配置web.xml , 注册DispatcherServlet<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-原创 2021-09-24 19:38:07 · 79 阅读 · 0 评论 -
github怎么绑定自己的域名以实现个人网站
1 没有域名的话先去申请一个域名如果你没有域名的话,可以先到阿里云:https://mi.aliyun.com/购买一个域名,购买完成之后不用备案就可以(我一开始以为还要备案,所以前前后后拖了很久)2 在仓库里添加CNAME文件并在文件中填写绑定的域名文件里填写要绑定的域名且不要包含Http://和www进入设置,找到 Custom domain添加域名后保存即可(添加CNAME文件并在文件中填写绑定的域名后应该会自动保存,看看有没有自动保存)3 添加域名解析ping你的http://g原创 2021-07-15 19:16:43 · 475 阅读 · 0 评论