Take a look at: https://github.com/apache/shiro/blob/master/samples/spring-mvc/src/main/java/org/apache/shiro/samples/spring/config/ApplicationConfig.java#L81-L94 or https://github.com/apache/shiro/blob/master/samples/spring-boot-web/src/main/java/org/apache/shiro/samples/WebApp.java#L72-L82
both of these samples define a Realm bean (via code) the original one I linked was an XML defined bean On Tue, Apr 24, 2018 at 5:56 AM, nitincn <[email protected]> wrote: > Hi Brian, > > I'm using Shiro 1.4.0 version. Spring version 4.3.3.RELEASE. > I have shiro.INI configuration. I'm not using XML based beans. > > I have extended JdbcRealm. In that overriding method > doGetAuthorizationInfo. > Inside this method i'm calling userDAO method to get the records from DB. > > In my Servlet.xml file, given complete scan <context:component-scan > base-package="****" /> > > Also, does Shiro not using CDI of spring? How to make DAO @Autowired? > > Thanks > > > > > > > > > -- > Sent from: http://shiro-developer.582600.n2.nabble.com/ >
