I haven't got any SQL statistics in JavaMelody.
When I look the log. I see:
No annotated classes found for specified class/package [classpath:net/bull/javamelody/monitoring-spring.xml]
What does it mean exactly?
Is my bean correct configured?
<bean id="jndiDataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="${jdbc.name}" /> </bean>
And ${jdbc.name} is jdbc/XXX
JavaMelody is 1.86.0 and JRobin 1.5.9.
And web.xml is:
<filter>
<filter-name>javamelody</filter-name>
<filter-class>net.bull.javamelody.MonitoringFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>javamelody</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<listener>
<listener-class>net.bull.javamelody.SessionListener</listener-class>
</listener>
Regards,
Neda
question from:
https://stackoverflow.com/questions/65920215/javamelody-gives-no-sql-statistics-datasource-jndiobjectfactorybean 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…