调整五分钟搭建一个前后端分离的项目,前端使用的技术栈是vue,后端使用的技术栈是springboot、maven;项目的目录结构如下
project/
├── project-backend/ # Backend Spring Boot project
│ ├── src/ # Source code
│ ├── target/ # Compiled files
│ ├── pom.xml # Maven configuration
│ ├── Dockerfile # Backend Docker configuration
│ └── README.md # Backend documentation
│
├── project-frontend/ # Frontend UniApp project
│ ├── src/ # Source code
│ ├── dist/ # Build output
│ ├── static/ # Static assets
│ ├── node_modules/ # Dependencies
│ ├── package.json # NPM configuration
│ ├── vite.config.ts # Vite configuration
│ ├── tsconfig.json # TypeScript configuration
│ ├── uni.scss # Global styles
│ ├── index.html # Entry HTML file
│ └── Dockerfile # Frontend Docker configuration
│
├── docker-compose.yml # Docker Compose configuration
├── README.md # Project documentation
└── .gitignore # Git ignore rules
在 project-backend项目中,java文件在编译器中显示编译失败
如下是应对上面问题,进行解决的思路,当然,结果也是惊掉了下吧。