| Write java code to Create an API endpoint for file metadata extraction using Spring Boot. accepts POST /api/extract-metadata with file; validates file type; extracts metadata safely; returns JSON with file info. Structure the project as: src/main/java/controllers/, utils/. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready. |