...
2. Create custom methods service
2.1. service structure
Custom methods service is basicly normal JAVA class. Only additional element is Spring 'Service@Service' annotation.
Code Block |
---|
import org.springframework.stereotype.Service;
@Service
public class ClassName {
// CLASS BODY
}
|
2.1. additional services access
In created service you can access many additional services that helps you manipulate data or view.
Access to outside service are made by Spring '@Autowired' annotation.
Code Block |
---|
import org.springframework.beans.factory.annotation.Autowired; ... @Autowired private ServiceType setviceName; |
2.1. additional services
TODO
1
2
3
4
5
6
3. custom methods
...