上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 22 下一页
摘要: 配置tomcat环境Linux export CATALINA_BASE=/usr/local/tomcat/apache-tomcat-7.0.68 export PATH=$PATH:$CATALINA_BASE/bin source /etc/profile 启动服务并打印日志 ./start 阅读全文
posted @ 2022-06-30 10:37 爱豆技术部 阅读(28) 评论(0) 推荐(0)
摘要: SpringBoot项目打包 SpringBoot项目打包在linux服务器中运行: ①jar类型项目会打成jar包: jar类型项目使用SpringBoot打包插件打包时,会在打成的jar中内置一个tomcat的jar。所以我们可以使用jdk直接运行该jar项目可,jar项目中有一个功能,将功能代 阅读全文
posted @ 2022-06-29 16:46 爱豆技术部 阅读(1893) 评论(0) 推荐(0)
摘要: Thymeleaf框架的使用 文件形式html即可 <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org" > <head> <meta charset="UTF-8"> <title>Title</title> <st 阅读全文
posted @ 2022-06-29 11:45 爱豆技术部 阅读(88) 评论(0) 推荐(0)
摘要: FreeMarker整合 如何判断空值 1、判断某变量是否存在使用 “??” 用法为:variable??,如果该变量存在,返回true,否则返回false 例:为防止stus为空报错可以加上判断如下 2、缺失变量默认值使用 “!” 使用!要以指定一个默认值,当变量为空时显示默认值。例: ${nam 阅读全文
posted @ 2022-06-28 14:51 爱豆技术部 阅读(52) 评论(0) 推荐(0)
摘要: Druid德鲁伊连接池的引入 它包含控制台,很方便的帮助我们实现对于sql执行的监控 http://localhost:8090/SpringBoot_All/druid/index.html 在application中添加配置druid server: servlet: context-path: 阅读全文
posted @ 2022-06-27 20:30 爱豆技术部 阅读(275) 评论(0) 推荐(0)
摘要: PageHelper分页显示 empServiceImpl代码 package com.msb.service.impl; import com.github.pagehelper.Page; import com.github.pagehelper.PageHelper; import com.g 阅读全文
posted @ 2022-06-27 16:48 爱豆技术部 阅读(69) 评论(0) 推荐(0)
摘要: SpringBoot中使用打印日志 在resources下创建日志文件 logback.xml(可以手动配置LOG_HOME是否存储到文件中,或存储到数据库) <?xml version="1.0" encoding="UTF-8" ?> <configuration> <!--定义日志文件的存储地 阅读全文
posted @ 2022-06-27 16:41 爱豆技术部 阅读(2123) 评论(0) 推荐(0)
摘要: 搭建SpringBoot项目方法 方式1: pom.xml文件 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org 阅读全文
posted @ 2022-06-27 09:55 爱豆技术部 阅读(257) 评论(0) 推荐(0)
摘要: 上传和下载文件流程 <%-- Created by IntelliJ IDEA. User: tomel Date: 2022/6/25 Time: 21:48 To change this template use File | Settings | File Templates. --%> <% 阅读全文
posted @ 2022-06-26 17:31 爱豆技术部 阅读(103) 评论(0) 推荐(0)
摘要: 将前端的Json字符串转换成json格式 <%-- Created by IntelliJ IDEA. User: tomel Date: 2022/6/26 Time: 10:44 To change this template use File | Settings | File Templat 阅读全文
posted @ 2022-06-26 13:28 爱豆技术部 阅读(680) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 22 下一页