I'm planning to create my objects in my Spring MVC using the below setup but How can I inject values to my MyService ie; instantiate the object with default value...

```
public class MyController {

    private MyService myService;

    @Autowired
    public void setMyService(MyService aService) { // autowired by Spring
        this.myService = aService;
    }

    @RequestMapping("/blah")
    public String someAction()
    {
        // do something here
        myService.foo();

        return "someView";
    }
}

```

MyService

```
class Myservice(){
     String servicename;
     public Myservice(servicename){
           this.servicename = servicename;
     }

}

```

Without Spring

```
  MyService first = new MyService("firstservice");
  MyService second = new MyService("secondservice");

```