Java tutorial
/* * [y] hybris Platform * * Copyright (c) 2000-2016 SAP SE * All rights reserved. * * This software is the confidential and proprietary information of SAP * Hybris ("Confidential Information"). You shall not disclose such * Confidential Information and shall use it only in accordance with the * terms of the license agreement you entered into with SAP Hybris. */ package de.hybris.platform.bonstore.controller; import static de.hybris.platform.bonstore.constants.BonstoreConstants.PLATFORM_LOGO_CODE; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import de.hybris.platform.bonstore.service.BonstoreService; @Controller public class BonstoreHelloController { @Autowired private BonstoreService bonstoreService; @RequestMapping(value = "/", method = RequestMethod.GET) public String printWelcome(final ModelMap model) { model.addAttribute("logoUrl", bonstoreService.getHybrisLogoUrl(PLATFORM_LOGO_CODE)); return "welcome"; } }