Click here to Skip to main content
14,830,332 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have tried dependency injection example from here

What is missing here?

What I have tried:

public class TestController extends Controller{
private Testing test;

public Result result() {;
    return ok();

Service Interface code:

public interface Testing {

public String tt();

ServiceImpl code:

public class Testingimpl implements Testing{
public String tt() {
    return "test";

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900