Spring Boot + JPA + Hibernate: Unable to locate persister -


i trying work entity inside request method of spring boot application. entity in project , pom.xml has dependencies it. why error message?:

org.hibernate.unknownentitytypeexception: unable locate persister: com.ric.bill.model.bs.par

package com.ric.web;  import java.util.concurrent.atomic.atomiclong;  import javax.persistence.entitymanager; import javax.persistence.persistencecontext;  import net.sf.ehcache.cachemanager; import net.sf.ehcache.management.cache; import net.sf.ehcache.management.cachestatistics;  import org.hibernate.stat.statistics; import org.springframework.beans.factory.annotation.autowired; import org.springframework.boot.autoconfigure.domain.entityscan; import org.springframework.cache.annotation.enablecaching; import org.springframework.transaction.annotation.enabletransactionmanagement; import org.springframework.transaction.annotation.propagation; import org.springframework.transaction.annotation.transactional; import org.springframework.web.bind.annotation.requestmapping; import org.springframework.web.bind.annotation.requestparam; import org.springframework.web.bind.annotation.restcontroller; import com.ric.bill.billserv; import com.ric.bill.calc; import com.ric.bill.chrgserv; import com.ric.bill.excp.errorwhilechrg; import com.ric.bill.model.ar.house; import com.ric.bill.model.ar.kart; import com.ric.bill.model.ar.kw; import com.ric.bill.model.bs.par;  @restcontroller @entityscan(basepackages = "com.ric.bill") public class greetingcontroller {      @persistencecontext     private entitymanager em;      @autowired     private billserv billserv;      @autowired     private chrgserv chrgserv;      private static final string template = "hello, %s!";     private final atomiclong counter = new atomiclong();      @requestmapping("/greeting")     @transactional(readonly = false, propagation = propagation.never)     public greeting greeting(@requestparam(value="lsk", defaultvalue="00000000") string lsk) {          par par = em.find(par.class, 64); <---error hapens here  ... 

my persistence.xml

<?xml version="1.0" encoding="utf-8" ?> <persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence"              xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"              xsi:schemalocation="http://xmlns.jcp.org/xml/ns/persistence              http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"              version="2.1">     <persistence-unit name="localentity">         <description>spring jpa demo localentitymanagerfactorybean</description>         <provider>org.hibernate.ejb.hibernatepersistence</provider>          <properties>             <property name = "hibernate.show_sql" value = "true" />         </properties>     </persistence-unit>     <persistence-unit name="localcontainerentity">         <description>spring jpa demo localcontainerentitymanagerfactorybean</description>         <provider>org.hibernate.ejb.hibernatepersistence</provider>         <properties>             <property name="hibernate.dialect" value="org.hibernate.dialect.oracle10gdialect"/>         </properties>     </persistence-unit> </persistence>  

billwebapplication.java:

@springbootapplication @enableautoconfiguration public class billwebapplication {      public static void main(string[] args) {         springapplication.run(billwebapplication.class, args);     } } 

jpaconfigtwo.java (got examples)

package com.ric.web;  import javax.sql.datasource;  import org.apache.commons.dbcp.basicdatasource; import org.springframework.boot.autoconfigure.enableautoconfiguration; import org.springframework.boot.autoconfigure.domain.entityscan; import org.springframework.context.annotation.bean; import org.springframework.context.annotation.componentscan; import org.springframework.context.annotation.configuration; import org.springframework.instrument.classloading.instrumentationloadtimeweaver; import org.springframework.instrument.classloading.loadtimeweaver; import org.springframework.orm.jpa.jpatransactionmanager; import org.springframework.orm.jpa.localcontainerentitymanagerfactorybean; import org.springframework.transaction.annotation.enabletransactionmanagement;  @configuration  @enabletransactionmanagement public class jpaconfigtwo {       @bean     public jpatransactionmanager jpatransman(){         jpatransactionmanager jtmanager = new jpatransactionmanager(                 getentitymanagerfactorybean().getobject());         return jtmanager;     }     @bean     public localcontainerentitymanagerfactorybean getentitymanagerfactorybean() {         localcontainerentitymanagerfactorybean lcemfb = new localcontainerentitymanagerfactorybean();         lcemfb.setpackagestoscan("com.ric.bill");         lcemfb.setdatasource(getdatasource());         lcemfb.setpersistenceunitname("localcontainerentity");         loadtimeweaver loadtimeweaver = new instrumentationloadtimeweaver();         lcemfb.setloadtimeweaver(loadtimeweaver);         return lcemfb;     }     @bean     public datasource getdatasource() {            basicdatasource datasource = new basicdatasource();            datasource.setdriverclassname("oracle.jdbc.oracledriver");            datasource.seturl("jdbc:oracle:thin:@127.0.0.1:1521:db");            datasource.setusername("lkk");            datasource.setpassword("1111");            return datasource;     } }  

my pom.xml:

<?xml version="1.0" encoding="utf-8"?> <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">     <modelversion>4.0.0</modelversion>      <groupid>com.ric.billweb</groupid>     <artifactid>billweb</artifactid>     <version>0.0.1-snapshot</version>     <packaging>jar</packaging>      <name>billweb</name>     <description>web services billing</description>      <parent>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-parent</artifactid>         <version>1.4.0.release</version>         <relativepath/> <!-- lookup parent repository -->     </parent>      <properties>         <project.build.sourceencoding>utf-8</project.build.sourceencoding>         <project.reporting.outputencoding>utf-8</project.reporting.outputencoding>         <java.version>1.8</java.version>          <!-- spring -->         <spring-framework.version>4.3.2.release</spring-framework.version>          <!-- hibernate / jpa -->         <hibernate.version>5.1.0.final</hibernate.version>      </properties>      <dependencies>      <!--    <dependency>           <groupid>com.ric.check</groupid>           <artifactid>hibernateehcacheexample</artifactid>           <version>0.0.2-snapshot</version>         </dependency>    -->           <dependency>           <groupid>org.springframework.samples</groupid>           <artifactid>billing</artifactid>           <version>0.0.1-snapshot</version>             <exclusions>           <exclusion>              <groupid>org.slf4j</groupid>             <artifactid>slf4j-log4j12</artifactid>           </exclusion>           <exclusion>              <groupid>log4j</groupid>             <artifactid>log4j</artifactid>           </exclusion>         </exclusions>          </dependency>           <dependency>             <groupid>org.springframework.boot</groupid>             <artifactid>spring-boot-starter-web-services</artifactid>         </dependency>          <dependency>             <groupid>org.springframework.boot</groupid>             <artifactid>spring-boot-starter-test</artifactid>         </dependency>          <dependency>             <groupid>org.springframework.boot</groupid>             <artifactid>spring-boot-starter-data-jpa</artifactid>         </dependency>          <!-- https://mvnrepository.com/artifact/commons-dbcp/commons-dbcp -->         <dependency>             <groupid>commons-dbcp</groupid>             <artifactid>commons-dbcp</artifactid>             <version>1.4</version>         </dependency>          <!-- hibernate -->         <dependency>             <groupid>org.hibernate.javax.persistence</groupid>             <artifactid>hibernate-jpa-2.1-api</artifactid>             <version>1.0.0.final</version>         </dependency>          <!-- https://mvnrepository.com/artifact/com.oracle/ojdbc14 -->         <dependency>             <groupid>com.oracle</groupid>             <artifactid>oracle</artifactid>             <version>10.2.0.2.0</version>         </dependency>          <dependency>             <groupid>org.hibernate</groupid>             <artifactid>hibernate-entitymanager</artifactid>             <version>${hibernate.version}</version>         </dependency> <!--                 <dependency>             <groupid>org.hibernate</groupid>             <artifactid>hibernate-ehcache</artifactid>             <version>${hibernate.version}</version>         </dependency>  -->           <!-- https://mvnrepository.com/artifact/net.sf.ehcache/ehcache --> <!--        <dependency>             <groupid>net.sf.ehcache</groupid>             <artifactid>ehcache</artifactid>             <version>2.10.2.2.21</version>         </dependency> -->           <dependency>                 <groupid>org.springframework</groupid>                 <artifactid>spring-context-support</artifactid>                 <version>4.0.1.release</version>             </dependency>       </dependencies>      <build>         <plugins>             <plugin>                 <groupid>org.springframework.boot</groupid>                 <artifactid>spring-boot-maven-plugin</artifactid>             </plugin>         </plugins>     </build>   </project> 

full error stack:

2016-08-08 20:09:39.172  info 39376 --- [           main] s.b.c.e.t.tomcatembeddedservletcontainer : tomcat initialized port(s): 8080 (http) 2016-08-08 20:09:39.188  info 39376 --- [           main] o.apache.catalina.core.standardservice   : starting service tomcat 2016-08-08 20:09:39.189  info 39376 --- [           main] org.apache.catalina.core.standardengine  : starting servlet engine: apache tomcat/8.5.4 2016-08-08 20:09:39.321  info 39376 --- [ost-startstop-1] o.a.c.c.c.[tomcat].[localhost].[/]       : initializing spring embedded webapplicationcontext 2016-08-08 20:09:39.321  info 39376 --- [ost-startstop-1] o.s.web.context.contextloader            : root webapplicationcontext: initialization completed in 2706 ms 2016-08-08 20:09:39.522  info 39376 --- [ost-startstop-1] o.s.b.w.servlet.servletregistrationbean  : mapping servlet: 'dispatcherservlet' [/] 2016-08-08 20:09:39.524  info 39376 --- [ost-startstop-1] o.s.b.w.servlet.servletregistrationbean  : mapping servlet: 'messagedispatcherservlet' [/services/*] 2016-08-08 20:09:39.527  info 39376 --- [ost-startstop-1] o.s.b.w.servlet.filterregistrationbean   : mapping filter: 'characterencodingfilter' to: [/*] 2016-08-08 20:09:39.527  info 39376 --- [ost-startstop-1] o.s.b.w.servlet.filterregistrationbean   : mapping filter: 'hiddenhttpmethodfilter' to: [/*] 2016-08-08 20:09:39.528  info 39376 --- [ost-startstop-1] o.s.b.w.servlet.filterregistrationbean   : mapping filter: 'httpputformcontentfilter' to: [/*] 2016-08-08 20:09:39.528  info 39376 --- [ost-startstop-1] o.s.b.w.servlet.filterregistrationbean   : mapping filter: 'requestcontextfilter' to: [/*] 2016-08-08 20:09:39.665  info 39376 --- [           main] o.s.o.j.p.defaultpersistenceunitmanager  : found explicit default unit name 'localcontainerentity' in persistence.xml - overriding local default unit settings ('packagestoscan'/'mappingresources') 2016-08-08 20:09:39.676  info 39376 --- [           main] j.localcontainerentitymanagerfactorybean : building jpa container entitymanagerfactory persistence unit 'localcontainerentity' 2016-08-08 20:09:39.677  warn 39376 --- [           main] org.hibernate.ejb.hibernatepersistence   : hhh015016: encountered deprecated javax.persistence.spi.persistenceprovider [org.hibernate.ejb.hibernatepersistence]; use [org.hibernate.jpa.hibernatepersistenceprovider] instead. 2016-08-08 20:09:39.686  info 39376 --- [           main] o.hibernate.jpa.internal.util.loghelper  : hhh000204: processing persistenceunitinfo [     name: localcontainerentity     ...] 2016-08-08 20:09:39.784  info 39376 --- [           main] org.hibernate.version                    : hhh000412: hibernate core {5.1.0.final} 2016-08-08 20:09:39.786  info 39376 --- [           main] org.hibernate.cfg.environment            : hhh000206: hibernate.properties not found 2016-08-08 20:09:39.788  info 39376 --- [           main] org.hibernate.cfg.environment            : hhh000021: bytecode provider name : javassist 2016-08-08 20:09:39.841  info 39376 --- [           main] o.hibernate.annotations.common.version   : hcann000001: hibernate commons annotations {5.0.1.final} 2016-08-08 20:09:40.392  info 39376 --- [           main] org.hibernate.dialect.dialect            : hhh000400: using dialect: org.hibernate.dialect.oracle10gdialect 2016-08-08 20:09:41.079  info 39376 --- [           main] j.localcontainerentitymanagerfactorybean : initialized jpa entitymanagerfactory persistence unit 'localcontainerentity' 2016-08-08 20:09:42.318  info 39376 --- [           main] s.w.s.m.m.a.requestmappinghandleradapter : looking @controlleradvice: org.springframework.boot.context.embedded.annotationconfigembeddedwebapplicationcontext@1bb5a082: startup date [mon aug 08 20:09:36 novt 2016]; root of context hierarchy 2016-08-08 20:09:42.523  info 39376 --- [           main] s.w.s.m.m.a.requestmappinghandlermapping : mapped "{[/greeting]}" onto public com.ric.web.greeting com.ric.web.greetingcontroller.greeting(java.lang.string) 2016-08-08 20:09:42.531  info 39376 --- [           main] s.w.s.m.m.a.requestmappinghandlermapping : mapped "{[/error]}" onto public org.springframework.http.responseentity<java.util.map<java.lang.string, java.lang.object>> org.springframework.boot.autoconfigure.web.basicerrorcontroller.error(javax.servlet.http.httpservletrequest) 2016-08-08 20:09:42.533  info 39376 --- [           main] s.w.s.m.m.a.requestmappinghandlermapping : mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.modelandview org.springframework.boot.autoconfigure.web.basicerrorcontroller.errorhtml(javax.servlet.http.httpservletrequest,javax.servlet.http.httpservletresponse) 2016-08-08 20:09:42.624  info 39376 --- [           main] o.s.w.s.handler.simpleurlhandlermapping  : mapped url path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.resourcehttprequesthandler] 2016-08-08 20:09:42.625  info 39376 --- [           main] o.s.w.s.handler.simpleurlhandlermapping  : mapped url path [/**] onto handler of type [class org.springframework.web.servlet.resource.resourcehttprequesthandler] 2016-08-08 20:09:42.731  info 39376 --- [           main] o.s.w.s.handler.simpleurlhandlermapping  : mapped url path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.resourcehttprequesthandler] 2016-08-08 20:09:43.547  info 39376 --- [           main] o.s.j.e.a.annotationmbeanexporter        : registering beans jmx exposure on startup 2016-08-08 20:09:43.677  info 39376 --- [           main] s.b.c.e.t.tomcatembeddedservletcontainer : tomcat started on port(s): 8080 (http) 2016-08-08 20:09:43.685  info 39376 --- [           main] com.ric.web.billwebapplication           : started billwebapplication in 7.566 seconds (jvm running 8.208) 2016-08-08 20:09:46.550  info 39376 --- [nio-8080-exec-1] o.a.c.c.c.[tomcat].[localhost].[/]       : initializing spring frameworkservlet 'dispatcherservlet' 2016-08-08 20:09:46.551  info 39376 --- [nio-8080-exec-1] o.s.web.servlet.dispatcherservlet        : frameworkservlet 'dispatcherservlet': initialization started 2016-08-08 20:09:46.594  info 39376 --- [nio-8080-exec-1] o.s.web.servlet.dispatcherservlet        : frameworkservlet 'dispatcherservlet': initialization completed in 43 ms 2016-08-08 20:09:46.919 error 39376 --- [nio-8080-exec-1] o.a.c.c.c.[.[.[/].[dispatcherservlet]    : servlet.service() servlet [dispatcherservlet] in context path [] threw exception [request processing failed; nested exception java.lang.illegalargumentexception: unable locate persister: com.ric.bill.model.bs.par] root cause  org.hibernate.unknownentitytypeexception: unable locate persister: com.ric.bill.model.bs.par     @ org.hibernate.internal.sessionfactoryimpl.locateentitypersister(sessionfactoryimpl.java:792) ~[hibernate-core-5.1.0.final.jar:5.1.0.final]     @ org.hibernate.internal.sessionimpl.locateentitypersister(sessionimpl.java:2882) ~[hibernate-core-5.1.0.final.jar:5.1.0.final]     @ org.hibernate.internal.sessionimpl.access$2500(sessionimpl.java:167) ~[hibernate-core-5.1.0.final.jar:5.1.0.final]     @ org.hibernate.internal.sessionimpl$identifierloadaccessimpl.<init>(sessionimpl.java:2662) ~[hibernate-core-5.1.0.final.jar:5.1.0.final]     @ org.hibernate.internal.sessionimpl$identifierloadaccessimpl.<init>(sessionimpl.java:2648) ~[hibernate-core-5.1.0.final.jar:5.1.0.final]     @ org.hibernate.internal.sessionimpl.byid(sessionimpl.java:1105) ~[hibernate-core-5.1.0.final.jar:5.1.0.final]     @ org.hibernate.internal.sessionimpl.get(sessionimpl.java:978) ~[hibernate-core-5.1.0.final.jar:5.1.0.final]     @ org.hibernate.jpa.spi.abstractentitymanagerimpl.find(abstractentitymanagerimpl.java:1075) ~[hibernate-entitymanager-5.1.0.final.jar:5.1.0.final]     @ org.hibernate.jpa.spi.abstractentitymanagerimpl.find(abstractentitymanagerimpl.java:1033) ~[hibernate-entitymanager-5.1.0.final.jar:5.1.0.final]     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) ~[na:1.8.0_60]     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) ~[na:1.8.0_60]     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) ~[na:1.8.0_60]     @ java.lang.reflect.method.invoke(method.java:497) ~[na:1.8.0_60]     @ org.springframework.orm.jpa.extendedentitymanagercreator$extendedentitymanagerinvocationhandler.invoke(extendedentitymanagercreator.java:347) ~[spring-orm-4.3.2.release.jar:4.3.2.release]     @ com.sun.proxy.$proxy83.find(unknown source) ~[na:na]     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) ~[na:1.8.0_60]     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) ~[na:1.8.0_60]     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) ~[na:1.8.0_60]     @ java.lang.reflect.method.invoke(method.java:497) ~[na:1.8.0_60]     @ org.springframework.orm.jpa.sharedentitymanagercreator$sharedentitymanagerinvocationhandler.invoke(sharedentitymanagercreator.java:298) ~[spring-orm-4.3.2.release.jar:4.3.2.release]     @ com.sun.proxy.$proxy76.find(unknown source) ~[na:na]     @ com.ric.web.greetingcontroller.greeting(greetingcontroller.java:74) ~[classes/:na]     @ com.ric.web.greetingcontroller$$fastclassbyspringcglib$$d8c8815e.invoke(<generated>) ~[classes/:na]     @ org.springframework.cglib.proxy.methodproxy.invoke(methodproxy.java:204) ~[spring-core-4.3.2.release.jar:4.3.2.release]     @ org.springframework.aop.framework.cglibaopproxy$cglibmethodinvocation.invokejoinpoint(cglibaopproxy.java:720) ~[spring-aop-4.3.2.release.jar:4.3.2.release]     @ org.springframework.aop.framework.reflectivemethodinvocation.proceed(reflectivemethodinvocation.java:157) ~[spring-aop-4.3.2.release.jar:4.3.2.release]     @ org.springframework.transaction.interceptor.transactioninterceptor$1.proceedwithinvocation(transactioninterceptor.java:99) ~[spring-tx-4.3.2.release.jar:4.3.2.release]     @ org.springframework.transaction.interceptor.transactionaspectsupport.invokewithintransaction(transactionaspectsupport.java:280) ~[spring-tx-4.3.2.release.jar:4.3.2.release]     @ org.springframework.transaction.interceptor.transactioninterceptor.invoke(transactioninterceptor.java:96) ~[spring-tx-4.3.2.release.jar:4.3.2.release]     @ org.springframework.aop.framework.reflectivemethodinvocation.proceed(reflectivemethodinvocation.java:179) ~[spring-aop-4.3.2.release.jar:4.3.2.release]     @ org.springframework.aop.framework.cglibaopproxy$dynamicadvisedinterceptor.intercept(cglibaopproxy.java:655) ~[spring-aop-4.3.2.release.jar:4.3.2.release]     @ com.ric.web.greetingcontroller$$enhancerbyspringcglib$$136cf73d.greeting(<generated>) ~[classes/:na]     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) ~[na:1.8.0_60]     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) ~[na:1.8.0_60]     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) ~[na:1.8.0_60]     @ java.lang.reflect.method.invoke(method.java:497) ~[na:1.8.0_60]     @ org.springframework.web.method.support.invocablehandlermethod.doinvoke(invocablehandlermethod.java:221) ~[spring-web-4.3.2.release.jar:4.3.2.release]     @ org.springframework.web.method.support.invocablehandlermethod.invokeforrequest(invocablehandlermethod.java:136) ~[spring-web-4.3.2.release.jar:4.3.2.release]     @ org.springframework.web.servlet.mvc.method.annotation.servletinvocablehandlermethod.invokeandhandle(servletinvocablehandlermethod.java:114) ~[spring-webmvc-4.3.2.release.jar:4.3.2.release]     @ org.springframework.web.servlet.mvc.method.annotation.requestmappinghandleradapter.invokehandlermethod(requestmappinghandleradapter.java:827) ~[spring-webmvc-4.3.2.release.jar:4.3.2.release]     @ org.springframework.web.servlet.mvc.method.annotation.requestmappinghandleradapter.handleinternal(requestmappinghandleradapter.java:738) ~[spring-webmvc-4.3.2.release.jar:4.3.2.release]     @ org.springframework.web.servlet.mvc.method.abstracthandlermethodadapter.handle(abstracthandlermethodadapter.java:85) ~[spring-webmvc-4.3.2.release.jar:4.3.2.release]     @ org.springframework.web.servlet.dispatcherservlet.dodispatch(dispatcherservlet.java:963) ~[spring-webmvc-4.3.2.release.jar:4.3.2.release]     @ org.springframework.web.servlet.dispatcherservlet.doservice(dispatcherservlet.java:897) ~[spring-webmvc-4.3.2.release.jar:4.3.2.release]     @ org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet.java:970) ~[spring-webmvc-4.3.2.release.jar:4.3.2.release]     @ org.springframework.web.servlet.frameworkservlet.doget(frameworkservlet.java:861) ~[spring-webmvc-4.3.2.release.jar:4.3.2.release]     @ javax.servlet.http.httpservlet.service(httpservlet.java:622) ~[tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.springframework.web.servlet.frameworkservlet.service(frameworkservlet.java:846) ~[spring-webmvc-4.3.2.release.jar:4.3.2.release]     @ javax.servlet.http.httpservlet.service(httpservlet.java:729) ~[tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:230) ~[tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:165) ~[tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter.java:52) ~[tomcat-embed-websocket-8.5.4.jar:8.5.4]     @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:192) ~[tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:165) ~[tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.springframework.web.filter.requestcontextfilter.dofilterinternal(requestcontextfilter.java:99) ~[spring-web-4.3.2.release.jar:4.3.2.release]     @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107) ~[spring-web-4.3.2.release.jar:4.3.2.release]     @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:192) ~[tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:165) ~[tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.springframework.web.filter.httpputformcontentfilter.dofilterinternal(httpputformcontentfilter.java:87) ~[spring-web-4.3.2.release.jar:4.3.2.release]     @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107) ~[spring-web-4.3.2.release.jar:4.3.2.release]     @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:192) ~[tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:165) ~[tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.springframework.web.filter.hiddenhttpmethodfilter.dofilterinternal(hiddenhttpmethodfilter.java:77) ~[spring-web-4.3.2.release.jar:4.3.2.release]     @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107) ~[spring-web-4.3.2.release.jar:4.3.2.release]     @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:192) ~[tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:165) ~[tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.springframework.web.filter.characterencodingfilter.dofilterinternal(characterencodingfilter.java:197) ~[spring-web-4.3.2.release.jar:4.3.2.release]     @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107) ~[spring-web-4.3.2.release.jar:4.3.2.release]     @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:192) ~[tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:165) ~[tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:198) ~[tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:108) [tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:522) [tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:140) [tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:79) [tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:87) [tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:349) [tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.coyote.http11.http11processor.service(http11processor.java:1110) [tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.coyote.abstractprocessorlight.process(abstractprocessorlight.java:66) [tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.coyote.abstractprotocol$connectionhandler.process(abstractprotocol.java:785) [tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.tomcat.util.net.nioendpoint$socketprocessor.dorun(nioendpoint.java:1425) [tomcat-embed-core-8.5.4.jar:8.5.4]     @ org.apache.tomcat.util.net.socketprocessorbase.run(socketprocessorbase.java:49) [tomcat-embed-core-8.5.4.jar:8.5.4]     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) [na:1.8.0_60]     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) [na:1.8.0_60]     @ org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run(taskthread.java:61) [tomcat-embed-core-8.5.4.jar:8.5.4]     @ java.lang.thread.run(thread.java:745) [na:1.8.0_60] 

i found next information problem: recommended spring boot run application root package , entities, controllers,dao's , other service classes should placed in child packages. not hard , fast rule ensures subpackage annotated classes scanned properly.

also read next article proper placement of classes in spring boot project: https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-structuring-your-code.html

eventually combined both project single. think not great solution problem, helped me.


Comments

Popular posts from this blog

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -