...
1. What is custom method?
TODO
1
2
3
4
5
6You can create custom method and attach it to defined model or view. Using this elements, you can connect defined xml to JAVA code.
To create custom method first you must create service, then implement one or more custom methods. Then you insert reference to created method in xml files.
2. Create custom methods service
Custom methods service is basicly normal JAVA class. Only additional element is Spring 'Service' annotation.
Code Block |
---|
import org.springframework.stereotype.Service;
@Service
public class ClassName {
// CLASS BODY
}
|
TODO
1
2
3
4
5
6
3. custom methods
...