• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

some of the beans are not initialize

 
Greenhorn
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
https://github.com/maxiwu/springexercise

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
 
reply
    Bookmark Topic Watch Topic
  • New Topic