Class GlobalControllerAdvice

java.lang.Object
de.digitalcollections.cudami.admin.controller.advice.GlobalControllerAdvice

@ControllerAdvice
public class GlobalControllerAdvice
extends java.lang.Object
Adds the webapp version read from application.yml as global model attribute and initializes custom property editors.
  • Constructor Summary

    Constructors 
    Constructor Description
    GlobalControllerAdvice​(RoleEditor roleEditor, java.lang.String version)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getVersion()  
    void registerCustomEditors​(org.springframework.web.bind.WebDataBinder binder, org.springframework.web.context.request.WebRequest request)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • registerCustomEditors

      @InitBinder public void registerCustomEditors​(org.springframework.web.bind.WebDataBinder binder, org.springframework.web.context.request.WebRequest request)
    • getVersion

      @ModelAttribute("version") public java.lang.String getVersion()