add JavaFX demo application

- Add FxMain as JavaFX application entry with IOC integration
- Add FxConfig with @Bean factory methods for DateTimeFormatter
- Add MainController with constructor injection
- Add UserService and MessageService layers
- Add main.fxml view with user management UI
- Add javafx-fxml dependency and javafx-maven-plugin
- Add demo documentation and run script
- Demonstrate @Controller, @Service, @Qualifier, @PostConstruct in JavaFX context

Run with: mvn javafx:run or run-javafx-demo.bat

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Timi
2026-01-11 12:31:50 +08:00
parent 71be7c07c0
commit 13926ea24a
9 changed files with 588 additions and 0 deletions

21
run-javafx-demo.bat Normal file
View File

@ -0,0 +1,21 @@
@echo off
echo =====================================
echo Timi-Inject JavaFX Demo
echo =====================================
echo.
echo Compiling project...
call mvn clean compile test-compile -Dmaven.test.skip=false -q
if errorlevel 1 (
echo Compilation failed!
pause
exit /b 1
)
echo.
echo Starting JavaFX application...
echo.
call mvn javafx:run
pause