package jp.dip.arimodoki.cntl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import jp.dip.arimodoki.blogic.BlHelloIf;
import jp.dip.arimodoki.model.FormHelloIf;
@Controller
@ComponentScan("jp.dip.arimodoki.*")
public class HelloCntl {
@Autowired
FormHelloIf formHello;
@Autowired
BlHelloIf blHello;
@ModelAttribute("FormHello")
public FormHelloIf setUpBindObject() {
this.blHello.setForm(this.formHello);
return this.formHello;
}
@RequestMapping(value = "/hellocntl")
public String hellocntl() {
blHello.setDiscription();
return "hellocntl";
}
}
|