当前位置:网站首页>Handwriting a blog platform ~ first day
Handwriting a blog platform ~ first day
2022-07-25 12:59:00 【51CTO】
Leave it to the reader
About blogs , I have written it by hand , To put it bluntly, it means developing an application independently , Build your own server , Deploy 、 The process of launching and maintaining the project , Of course, because it's the first day , So for those who are unwilling to develop , I provide a portable way , Look at the renderings first , My Hexo Static blog sites , You can download it directly and build it quickly , Maintenance does not require a server , Just register Github, Be able to give simple commands and spend a few minutes using the comment system given by others for free 、 Just count the reading amount .
Give links :
First, let's talk about the needs analysis of blog platform development :
development tool :
- First you need a
IDEA development tool , This is generally recognized and recommended as the best Java development tool - The second is
JDK , current JDK Unlike 1.8 Previous version , Yes, there are two bags , The current version JDK Contains JRE(Java Runtime Environment), namely Java Operating environment , Virtual machine environment ,JDK(Java Development Kit),Kit It's a tool , That is, some api tool kit , For example, common java.util、java.math and java.io wait .
Environmental Science :
-
Java Environmental Science , Configuration Java Environment variables of , The purpose is to be able to use Java Of bin library , To configure path To JDK_HOME_PATH Directory path -
Tomcat Environmental Science , Is to run Java Containers required for the project , We often develop war The bag can be in tomcat Of webapp Start in , and jar package (springboot) It's built in tomcat The package , It will automatically put springboot Built in tomcat Go to start , The principle is the same . -
Maven Environmental Science , The project will depend on a lot jar package , We need a software to manage , Of course, it's not impossible for you to manage it manually , Use maven There are two reasons for portability : First of all , One click import dependency package , There is no need to consider downloading manually , second , Easy to manage multi modular and aggregation projects .
tomcat Container start close command :
springboot Start the shutdown command :
Tips :
-
start.sh The startup script :
-
status.sh Status scripts :
-
stop.sh Close script
maven Project Command :
Other necessary configurations :
-
Tomcat Log output encoding configuration :
Because most people are Win Operating system development , The default system code is GBK, and tomcat The default log output is UTF-8, development tool Tomcat Also configure the output console According to the system , So you can do it cmd Windows and idea Bear's paw has both effects .
logging.properties
-
Maven Mirror to accelerate :
settings.xml
JDK Official website download address : Download the Latest Java LTS Free
tomcat Official website download address : https://tomcat.apache.org/download-80.cgi
maven Official website download address : Maven - Download Apache Maven
Download recommendation : Install free green version ( Easy to configure and uninstall ),JDK1.8、Tomcat8、Maven3.6
although JDK1.8 The official website has cancelled the link to the installation free version , It's OK to go OpenJdk Download from the official website : OpenJDK JDK 18.0.2 GA Release
Recommend developer search engines , Developer search -Beta- Make technology search simpler and more efficient , It can avoid searching spam
Recommend open source software search : OSCS | Open source software supply chain security community | Make every open source project more secure
More wonderful in the next day , Hiccup kid paper is continuing to follow up ...
By the way, I would like to share with you my technical column in recent years : https://github.com/fyupeng
边栏推荐
- EMQX Cloud 更新:日志分析增加更多参数,监控运维更省心
- How to use causal inference and experiments to drive user growth| July 28 tf67
- [fluent -- example] case 1: comprehensive example of basic components and layout components
- 【AI4Code】《Contrastive Code Representation Learning》 (EMNLP 2021)
- 手写一个博客平台~第一天
- word样式和多级列表设置技巧(二)
- 零基础学习CANoe Panel(16)—— Clock Control/Panel Control/Start Stop Control/Tab Control
- Requirements specification template
- Word style and multi-level list setting skills (II)
- MySQL implements inserting data from one table into another table
猜你喜欢

clickhouse笔记03-- Grafana 接入ClickHouse

2022 年中回顾 | 大模型技术最新进展 澜舟科技

“蔚来杯“2022牛客暑期多校训练营2 补题题解(G、J、K、L)

A hard journey

Chapter5 : Deep Learning and Computational Chemistry

【历史上的今天】7 月 25 日:IBM 获得了第一项专利;Verizon 收购雅虎;亚马逊发布 Fire Phone

AtCoder Beginner Contest 261E // 按位思考 + dp

Zero basic learning canoe panel (12) -- progress bar

JS 将伪数组转换成数组

【AI4Code】《CodeBERT: A Pre-Trained Model for Programming and Natural Languages》 EMNLP 2020
随机推荐
Clickhouse notes 03-- grafana accesses Clickhouse
2022.07.24(LC_6125_相等行列对)
Docekr学习 - MySQL8主从复制搭建部署
2022 Henan Mengxin League game (3): Henan University I - Travel
Make a general cascade dictionary selection control based on jeecg -dictcascadeuniversal
Lu MENGZHENG's "Fu of broken kiln"
【Rust】引用和借用,字符串切片 (slice) 类型 (&str)——Rust语言基础12
Mid 2022 review | latest progress of large model technology Lanzhou Technology
LeetCode 0133. 克隆图
Leetcode 0133. clone diagram
状态(State)模式
【历史上的今天】7 月 25 日:IBM 获得了第一项专利;Verizon 收购雅虎;亚马逊发布 Fire Phone
Excuse me, using data integration to import data from PostgreSQL to MySQL database, emoj appears in some data fields
业务可视化-让你的流程图'Run'起来(3.分支选择&跨语言分布式运行节点)
[problem solving] org.apache.ibatis.exceptions PersistenceException: Error building SqlSession. 1-byte word of UTF-8 sequence
ECCV 2022 | climb to the top semantickitti! Semantic segmentation of LIDAR point cloud based on two-dimensional prior assistance
Deployment of Apache website services and implementation of access control
mysql有 flush privileges 吗
[high concurrency] deeply analyze the execution process of worker threads in the thread pool through the source code
感动中国人物刘盛兰