会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
nefu-xun
博客园
首页
新随笔
联系
订阅
管理
2024年2月24日
linux节点安装必要的前端项目环境
摘要: 当前linux(centos7)服务器节点用于部署前端项目 安装 Nodejs 将node的安装包,例如:node-v12.16.3-linux-x64.tar.xz 上传至服务器的root目录下 tips: 借助git bash的scp命令上传本地文件至服务器 scp ./node-v12.16.
阅读全文
posted @ 2024-02-24 19:13 nefu-xun
阅读(215)
评论(0)
推荐(0)
2024年2月23日
多节点linux环境打造
摘要: 整体架构:1 + 3 1指:宿主机(作为客户端访问) 3指:3个虚拟机(其中1个作为前端项目部署服务器,2个作为多实例的后端项目服务器集群) 虚拟机上服务器配置 step1: vmware workstation 安装及破解 + 借助centos7镜像 step2: 确保宿主机可ping通外网且可p
阅读全文
posted @ 2024-02-23 17:03 nefu-xun
阅读(45)
评论(0)
推荐(0)
2022年11月15日
SpringBoot 08: SpringBoot综合使用 MyBatis, Dubbo, Redis
摘要: 业务背景 Student表 CREATE TABLE `student` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_bin DEFAULT NULL, `phone` varchar(11) CO
阅读全文
posted @ 2022-11-15 23:49 nefu-xun
阅读(217)
评论(0)
推荐(0)
SpringBoot 11: Spring + SpringMVC + SpringBoot常用注解总结
摘要: 创建对象的: @Controller: 放在类的上面,创建控制器对象,注入到容器中 @RestController: 放在类的上面,创建控制器对象,注入到容器中 作用:是@Controller @ResponseBody的复合注解, 使用这个注解类的,里面的控制器方法的返回值都是数据 @Servic
阅读全文
posted @ 2022-11-15 23:47 nefu-xun
阅读(74)
评论(0)
推荐(0)
SpringBoot 10: SpringBoot使用Thymeleaf模板引擎替代jsp
摘要: Thymeleaf 模板引擎 简介 Thymeleaf:是使用java开发的模板技术,在服务器端运行,把处理后的数据发送给浏览器 模板是作视图层工作的,用来显示数据的 Thymeleaf是基于Html语言的,其语法是应用在html标签中 SpringBoot框架集成Thymealeaf模板引擎, 使
阅读全文
posted @ 2022-11-15 23:34 nefu-xun
阅读(364)
评论(0)
推荐(0)
SpringBoot 09: SpringBoot项目打包 (war包 + jar包)
摘要: 打成war包 项目配置 创建一个springboot的jsp应用 pom.xml <!-- 执行打包是war包--> <packaging>war</packaging> <build> <!--打包后的文件名称--> <finalName>myboot</finalName> <!--resour
阅读全文
posted @ 2022-11-15 23:05 nefu-xun
阅读(185)
评论(0)
推荐(0)
SpringBoot 07: springboot中使用dubbo
摘要: 公共接口项目 独立的maven项目:定义了接口和数据类 数据类 kage com.example.dubbo.model; import java.io.Serializable; public class Student implements Serializable { private stat
阅读全文
posted @ 2022-11-15 18:19 nefu-xun
阅读(113)
评论(0)
推荐(0)
SpringBoot 06: springboot中使用redis
摘要: 配置SpringBoot 创建SpringBoot项目时勾选Redis起步依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactI
阅读全文
posted @ 2022-11-15 17:43 nefu-xun
阅读(428)
评论(0)
推荐(1)
2022年11月14日
SpringBoot 05: 接口架构风格 + RESTful接口风格
摘要: 接口 定义 API (Application Programming Interface,应用程序接口) 是一些预先定义的接口(如函数、HTTP接口,或指软件系统不同组成部分衔接的约定) 是用来提供应用程序与开发人员基于某软件或硬件得以访问的一组例程, 而又无需访问源码, 或理解内部工作机制的细节
阅读全文
posted @ 2022-11-14 16:34 nefu-xun
阅读(116)
评论(0)
推荐(0)
2022年11月13日
SpringBoot 04: springboot中应用orm操作mysql
摘要: Mapper文件和Dao接口分开管理 创建SpringBoot项目时勾选mybatis,mysql起步依赖 可以完成mybatis对象的自动配置, 将对象放在容器中 在resources目录中创建子目录(自定义的名称) , 例如mapper 把后续添加的mapper文件放到此mapper目录中 在a
阅读全文
posted @ 2022-11-13 16:34 nefu-xun
阅读(147)
评论(0)
推荐(0)
下一页
公告