A modern Enterprise Resource Planning (ERP) system built with Spring Boot and ShardingSphere.
- User management with role-based access control
- Database sharding support using ShardingSphere
- Distributed session management with Redis
- RESTful API design
- Modern web interface with Thymeleaf
- Java 17
- Spring Boot 3.x
- MyBatis
- ShardingSphere
- MySQL
- Redis
- Thymeleaf
- JDK 17 or later
- Maven 3.6 or later
- MySQL 8.0 or later
- Redis 6.0 or later
- Clone the repository:
git clone https://github.com/yourusername/foo-erp.git
cd foo-erp- Configure the database:
- Create a MySQL database named
foo_erp - Update the database configuration in
src/main/resources/application.properties
- Build the project:
mvn clean install- Run the application:
mvn spring-boot:runThe application will be available at http://localhost:8080
The system uses ShardingSphere for database sharding. Currently, the following tables are sharded:
- users
- users_roles
Other tables use the default data source without sharding.
This project is licensed under the MIT License - see the LICENSE file for details.