- 1 由 springboot 的 dto 拓展的内容
- 2 springboot 的 domain 中的 vo 是什么?
- 3 springboot 中创建多个模块创建、关联,后续如何打包呢?
- 4 springboot 模块化开发与项目搭建流程
- 5 如何让多模块的项目结构更加清晰、易于理解
- 6 PO、VO、DAO、BO、DTO、POJO 能分清吗?
- 7 控制反转 IoC 与依赖注入 DI
- 8 示例代码案例详细解释内容
- 9 基础项目功能简介带你入门挖坑
- 10 服务端部署
- 11 Spring Boot 整理大纲与数据结构实战
- 12 DAO 功能代码
- 13 MyBatis 讲解
- 14 MyBatis-CRUD 讲解
- 15 MyBatis 分页
- 16 一对多、多对一、SQL 缓存
- 17 Spring 我的春天
- 18 SpringMVC 我的春天
- 19 权限
- 20 Dubbo
- 21 SSO
- 22 security、Lombok、token、redis
- 23 login 与 register 代码流程
- 24 架构 mongodbmanager,Redis,Mybatis,Spring Security
- 25 实体类定义规则
- 26 centos 和 docker
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
8 示例代码案例详细解释内容
controller.TestController
@RestController // 将数据以json形式返回
public classTestController {
@GetMapping("/test")
public String test() {
return "hello <https://github.com/webVueBlog/JavaGuideInterview>"
}
}
集成热部署并配置多环境和sql日志






创建数据库以及表





- 点击【终端】,登录root帐号,根据系统运行命令安装maven。
apt-get install maven
或者
yum install maven
解压到宝塔面板/www/wwwroot目录。

打开【终端】,运行cd命令进入项目目录的server目录,运行编译命令。首次编译需要下载依赖,时间会比较长。
cd /www/wwwroot/xxx/server
mvn clean install -Dmaven.test.skip=true -f pom.xml


点击【设置】-【伪静态】,填写下面伪静态信息,【保存】。
location / {
try_files $uri $uri/ /index.html;
}

点击【SSL】-【Let's Encrypt】,选择【文件验证】,勾选域名,点击【申请】,等待完成https证书申请。


PC端和手机端
# 请将伪静态规则或自定义NGINX配置填写到此
location /pc {
try_files $uri $uri/ /pc/index.html;
}
location /mobile {
try_files $uri $uri/ /mobile/index.html;
}
点击【SSL】-【Let's Encrypt】,选择【文件验证】,勾选域名,点击【申请】,等待完成https证书申请。
如果该产品有PC端网页前台访问:https://添加的前台域名/pc,即可访问PC端。如果该产品有手机网页端前台访问:https://添加的前台域名/mobile,即可访问PC端。默认访问域名,会自动根据访问者使用PC或手机自动跳转。
仓库地址:https://github.com/webVueBlog/JavaGuideInterview
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论