• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

some of the beans are not initialize

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using java config to setup my MVC web project. there are beans in my WebMvcConfigurerAdapter, some of them initialize correctly, they get invoked and reach breakpoint inside their method. but some of them are left out. notice that all left out beans are suffix with Controller, couldn't find out why.

for example, photoServices() is called, photoController() doesn't

project souce code

the WebMvcConfigurerAdapter

something wrong with @ComponentScan("umedia.test.oauth.controller")
if I remove this, all beans are initailized, but I get http 404 if I try to view any of my page
    Bookmark Topic Watch Topic
  • New Topic