OK.
I added a Spring Service to your datafx-tutorial-5 project (see code below) and it works fine when I use applicationContext.getBean spring method to get bean.
@FXMLController("wizardView1.fxml")
public class WizardView1Controller {
@FXML
private Label view1Label;
MessageService service;
@PostConstruct
public void init() {
service = SpringContext.getApplicationContext().getBean(MessageService.class);
view1Label.setText(service.getMessage());
}
}
@Service
public class MessageService {
public String getMessage() {
return "message";
}
}
wizardView1.fxml
<font>
<Font size="24.0"/>
</font>
</Label>
Have you an idea how do I do if I want to use annotation @Autowired MessageService now.
Thanks
Hoby