how to define a Interface and its method in spring configuration file ?

Nothing I want to create by code but by spring configuration file
Here i do not want to create Interface as below

Code:
interface A
{
}