java运行
破解
- F:\Downloads\idea
- F:\Downloads\win2021-2024\win2021-2023\vmoptions 修改配置
java开发
破解
中文在编辑器中乱码
idea 激活方式
这个开源库真牛逼 好多东西
通过spring initializr创建项目
引入swagger
配置路径设置
swagger
automapper
mvn clean install 生成项目架包 java -jar xxxxx.jar
maven
maven 下载地址
接口统一返回封装
哔站视频
代码: https://github.com/coder-fengzhu/mp-demo 文档: https://www.yuque.com/zaibaliweigezidemeixi/dopm5h 密码:mp6h
mybatis-plus 版本问题报错
- https://www.jb51.net/program/308745bxt.htm
- 指定mybatis-spring 版本即可解决
- 官网 https://baomidou.com/guides/wrapper/
- https://baomidou.com/introduce/
- https://mybatis.org/mybatis-3/zh_CN/index.htmls
java 版本
- https://blog.csdn.net/u014454538/article/details/130735582
- https://weibo.com/ttarticle/p/show?id=2309405031072714064124#_loginLayer_1720135208334
java jdk下载地址
- https://adoptium.net/download/
- linux下安装java
tar -zxvf OpenJDK17U-jdk_x64_linux_hotspot_17.0.11_9.tar.gz
Mysql数据库连接池
systemd 服务设置
// /usr/lib/systemd/system
systemctl enable sun-xxm-java
systemctl start sun-xxm-java
systemctl daemon-reload
//etc/nginx/conf.d
nginx -t
nginx -s reload
- sun-xxm java小服务
[Unit]
Description=sun-xxm
After=network-online.target
Wants=network-online.target
[Service]
# modify when deploy in prod env
# User=dvs
# Group=dvs
Type=simple
ExecStart=/root/java/jdk-17.0.11+9/bin/java -jar /usr/local/sunlight/sun-xxm-java/xxm-0.0.1.jar
WorkingDirectory=/usr/local/sunlight/sun-xxm-java
Restart=always
RestartSec=1
StartLimitInterval=0
[Install]
WantedBy=multi-user.target
几篇不错的文章集锦
java token校验结合swagger
从零开始学Java SpringBoot
- 安装idea工具
- 安装jdk-17
- 通过spring initializr创建项目
- 链接mysql
- 登录接口