Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Component
- public class StartupApplicationListener implements ApplicationListener<ContextRefreshedEvent> {
- @Resource
- private SiteRolesService siteRolesService;
- @Override
- public void onApplicationEvent(ContextRefreshedEvent event) {
- //to do HERE
- }
- }
- @ComponentScan({
- ...
- "com.tr1nks.model.components"
- })
Add Comment
Please, Sign In to add comment