# maven-springboot **Repository Path**: User-Name-Chao/maven-springboot ## Basic Information - **Project Name**: maven-springboot - **Description**: springboot-web后端学习 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-18 - **Last Updated**: 2024-08-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # java-springboot #### 介绍 springboot-web后端学习 springboot maven sqlite3 mybatis #### 软件架构 ``` maven-springboot/ # 项目根目录 ├─logs/ # 日志文件夹 │ └─maven-springboot/ # 以项目名创建文件夹 │ └─20240718/ # 日志按天分割 ├─src/ # 源码 │ ├─main │ │ ├─java │ │ │ └─com.zc.mavenspringboot │ │ │ ├─common/ # 公共代码。 │ │ │ ├─config/ # 配置类,如数据源、安全配置等。 │ │ │ ├─controller/ # 控制器类,处理HTTP请求。 │ │ │ │ └─zrl │ │ │ ├─dto/ # 数据传输对象,用于在不同层之间传递数据。 │ │ │ │ ├─request │ │ │ │ └─response │ │ │ ├─entity/ # 实体类,通常用于表示数据库表的模型。 │ │ │ ├─mapper/ # 数据访问层(dao/),负责数据持久化操作。 │ │ │ ├─property/ # 读取配置文件信息。 │ │ │ ├─scheduled/ # 定时任务类,用于定时执行任务。 │ │ │ ├─service/ # 业务逻辑层,处理业务逻辑。 │ │ │ ├─util/ # 工具类,如日期处理、字符串操作等。 │ │ │ ├─MavenSpringbootApplication.java # Spring Boot应用程序的主类,包含main方法启动应用。 │ │ │ └─ │ │ └─resources/ # 资源。 │ │ ├─config/ # 配置文件。 │ │ │ ├─application.yml # 应用程序配置文件。 │ │ │ └─logback.xml 或 logging.properties - 日志配置文件。 │ │ ├─Mapper/ # MyBatis的mapper编写SQL语句的XML文件。 │ │ ├─static/ # 静态资源,如CSS、JavaScript、图像等。 │ │ │ └─db_sql/ # 数据库建表SQL文件。 │ │ └─templates/ # HTML模版。 │ └─test │ └─java │ └─com.zc.mavenspringboot/ # 测试类 ``` #### 安装使用 1. git clone https://gitee.com/User-Name-Chao/maven-springboot.git 2. cd maven-springboot 3. mvn spring-boot:run #### Reference Documentation For further reference, please consider the following sections: * [Official Apache Maven documentation](https://maven.apache.org/guides/index.html) * [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.6.13/maven-plugin/reference/html/) * [Create an OCI image](https://docs.spring.io/spring-boot/docs/2.6.13/maven-plugin/reference/html/#build-image) * [Spring Boot DevTools](https://docs.spring.io/spring-boot/docs/2.6.13/reference/htmlsingle/#using.devtools) * [Spring Web](https://docs.spring.io/spring-boot/docs/2.6.13/reference/htmlsingle/#web) * [Spring Data Redis (Access+Driver)](https://docs.spring.io/spring-boot/docs/2.6.13/reference/htmlsingle/#data.nosql.redis) #### Guides The following guides illustrate how to use some features concretely: * [Accessing data with MySQL](https://spring.io/guides/gs/accessing-data-mysql/) * [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/) * [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/) * [Building REST services with Spring](https://spring.io/guides/tutorials/rest/) * [Messaging with Redis](https://spring.io/guides/gs/messaging-redis/)