Spring boot YAML configuration issue -
i'm using yaml configuration configure spring boot application. .yaml has port configuration server. however, when run app yaml configuration file seems not pick port number .yaml file. have provided yaml , console output below. not sure why server doesn't startup @ 8282 , still starts default.
application.yaml configuration
server: port:8282
console output
. ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: spring boot :: (v1.2.6.release) 10:33:51 info com.vti.application logstarting starting application on tusga00flkht01q pid 5408 (c:\svn-repository\ivr-callcenter-common-services\target\classes started v579424 in c:\svn-repository\ivr-callcenter-common-services) 10:33:51 debug com.vti.application logstarting running spring boot v1.2.6.release, spring v4.1.7.release 10:33:51 info ntext.embedded.annotationconfigembeddedwebapplicationcontext preparerefresh refreshing org.springframework.boot.context.embedded.annotationconfigembeddedwebapplicationcontext@3b2c72c2: startup date [wed sep 30 10:33:51 edt 2015]; root of context hierarchy 10:33:52 info rg.springframework.beans.factory.xml.xmlbeandefinitionreader loadbeandefinitions loading xml bean definitions class path resource [spring/beans.xml] 10:33:53 info ngframework.beans.factory.support.defaultlistablebeanfactory registerbeandefinition overriding bean definition bean 'mvccontentnegotiationmanager': replacing [root bean: class [org.springframework.web.accept.contentnegotiationmanagerfactorybean]; scope=; abstract=false; lazyinit=false; autowiremode=0; dependencycheck=0; autowirecandidate=true; primary=false; factorybeanname=null; factorymethodname=null; initmethodname=null; destroymethodname=null] [root bean: class [null]; scope=; abstract=false; lazyinit=false; autowiremode=3; dependencycheck=0; autowirecandidate=true; primary=false; factorybeanname=org.springframework.boot.autoconfigure.web.webmvcautoconfiguration$enablewebmvcconfiguration; factorymethodname=mvccontentnegotiationmanager; initmethodname=null; destroymethodname=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/webmvcautoconfiguration$enablewebmvcconfiguration.class]] 10:33:53 info ngframework.beans.factory.support.defaultlistablebeanfactory registerbeandefinition overriding bean definition bean 'mvcresourceurlprovider': replacing [root bean: class [org.springframework.web.servlet.resource.resourceurlprovider]; scope=; abstract=false; lazyinit=false; autowiremode=0; dependencycheck=0; autowirecandidate=true; primary=false; factorybeanname=null; factorymethodname=null; initmethodname=null; destroymethodname=null] [root bean: class [null]; scope=; abstract=false; lazyinit=false; autowiremode=3; dependencycheck=0; autowirecandidate=true; primary=false; factorybeanname=org.springframework.boot.autoconfigure.web.webmvcautoconfiguration$enablewebmvcconfiguration; factorymethodname=mvcresourceurlprovider; initmethodname=null; destroymethodname=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/webmvcautoconfiguration$enablewebmvcconfiguration.class]] 10:33:53 info ngframework.beans.factory.support.defaultlistablebeanfactory registerbeandefinition overriding bean definition bean 'mvcpathmatcher': replacing [root bean: class [org.springframework.util.antpathmatcher]; scope=; abstract=false; lazyinit=false; autowiremode=0; dependencycheck=0; autowirecandidate=true; primary=false; factorybeanname=null; factorymethodname=null; initmethodname=null; destroymethodname=null] [root bean: class [null]; scope=; abstract=false; lazyinit=false; autowiremode=3; dependencycheck=0; autowirecandidate=true; primary=false; factorybeanname=org.springframework.boot.autoconfigure.web.webmvcautoconfiguration$enablewebmvcconfiguration; factorymethodname=mvcpathmatcher; initmethodname=null; destroymethodname=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/webmvcautoconfiguration$enablewebmvcconfiguration.class]] 10:33:53 info ngframework.beans.factory.support.defaultlistablebeanfactory registerbeandefinition overriding bean definition bean 'mvcurlpathhelper': replacing [root bean: class [org.springframework.web.util.urlpathhelper]; scope=; abstract=false; lazyinit=false; autowiremode=0; dependencycheck=0; autowirecandidate=true; primary=false; factorybeanname=null; factorymethodname=null; initmethodname=null; destroymethodname=null] [root bean: class [null]; scope=; abstract=false; lazyinit=false; autowiremode=3; dependencycheck=0; autowirecandidate=true; primary=false; factorybeanname=org.springframework.boot.autoconfigure.web.webmvcautoconfiguration$enablewebmvcconfiguration; factorymethodname=mvcurlpathhelper; initmethodname=null; destroymethodname=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/webmvcautoconfiguration$enablewebmvcconfiguration.class]] 10:33:53 info rk.context.annotation.configurationclassbeandefinitionreader iddenbyexistingdefinition skipping bean definition [beanmethod:name=mvcuricomponentscontributor,declaringclass=org.springframework.web.servlet.config.annotation.webmvcconfigurationsupport]: definition bean 'mvcuricomponentscontributor' exists. top-level bean definition considered override. 10:33:53 info ngframework.beans.factory.support.defaultlistablebeanfactory registerbeandefinition overriding bean definition bean 'beannameviewresolver': replacing [root bean: class [null]; scope=; abstract=false; lazyinit=false; autowiremode=3; dependencycheck=0; autowirecandidate=true; primary=false; factorybeanname=org.springframework.boot.autoconfigure.web.errormvcautoconfiguration$whitelabelerrorviewconfiguration; factorymethodname=beannameviewresolver; initmethodname=null; destroymethodname=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/errormvcautoconfiguration$whitelabelerrorviewconfiguration.class]] [root bean: class [null]; scope=; abstract=false; lazyinit=false; autowiremode=3; dependencycheck=0; autowirecandidate=true; primary=false; factorybeanname=org.springframework.boot.autoconfigure.web.webmvcautoconfiguration$webmvcautoconfigurationadapter; factorymethodname=beannameviewresolver; initmethodname=null; destroymethodname=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/webmvcautoconfiguration$webmvcautoconfigurationadapter.class]] 10:33:54 info framework.beans.factory.config.propertyplaceholderconfigurer loadproperties loading properties file class path resource [framework_dev.properties] 10:33:54 info framework.beans.factory.config.propertyplaceholderconfigurer loadproperties loading properties file class path resource [data/testdata/testdata_dev.properties] 10:33:54 info framework.beans.factory.config.propertyplaceholderconfigurer loadproperties loading properties file class path resource [db/db_dev.properties] log4j:warn no appenders found logger (org.jboss.logging). log4j:warn please initialize log4j system properly. log4j:warn see http://logging.apache.org/log4j/1.2/faq.html#noconfig more info. 10:33:54 info t.postprocessorregistrationdelegate$beanpostprocessorchecker rocessafterinitialization bean 'org.springframework.transaction.annotation.proxytransactionmanagementconfiguration' of type [class org.springframework.transaction.annotation.proxytransactionmanagementconfiguration$$enhancerbyspringcglib$$3e9fd57a] not eligible getting processed beanpostprocessors (for example: not eligible auto-proxying) 10:33:54 info t.postprocessorregistrationdelegate$beanpostprocessorchecker rocessafterinitialization bean 'transactionattributesource' of type [class org.springframework.transaction.annotation.annotationtransactionattributesource] not eligible getting processed beanpostprocessors (for example: not eligible auto-proxying) 10:33:54 info t.postprocessorregistrationdelegate$beanpostprocessorchecker rocessafterinitialization bean 'transactioninterceptor' of type [class org.springframework.transaction.interceptor.transactioninterceptor] not eligible getting processed beanpostprocessors (for example: not eligible auto-proxying) 10:33:54 info t.postprocessorregistrationdelegate$beanpostprocessorchecker rocessafterinitialization bean 'org.springframework.transaction.config.internaltransactionadvisor' of type [class org.springframework.transaction.interceptor.beanfactorytransactionattributesourceadvisor] not eligible getting processed beanpostprocessors (for example: not eligible auto-proxying) 10:33:54 info t.postprocessorregistrationdelegate$beanpostprocessorchecker rocessafterinitialization bean 'org.springframework.cache.annotation.proxycachingconfiguration' of type [class org.springframework.cache.annotation.proxycachingconfiguration$$enhancerbyspringcglib$$a5fd9fd8] not eligible getting processed beanpostprocessors (for example: not eligible auto-proxying) 10:33:54 info t.postprocessorregistrationdelegate$beanpostprocessorchecker rocessafterinitialization bean 'cacheoperationsource' of type [class org.springframework.cache.annotation.annotationcacheoperationsource] not eligible getting processed beanpostprocessors (for example: not eligible auto-proxying) 10:33:54 info t.postprocessorregistrationdelegate$beanpostprocessorchecker rocessafterinitialization bean 'cacheinterceptor' of type [class org.springframework.cache.interceptor.cacheinterceptor] not eligible getting processed beanpostprocessors (for example: not eligible auto-proxying) 10:33:54 info t.postprocessorregistrationdelegate$beanpostprocessorchecker rocessafterinitialization bean 'org.springframework.cache.config.internalcacheadvisor' of type [class org.springframework.cache.interceptor.beanfactorycacheoperationsourceadvisor] not eligible getting processed beanpostprocessors (for example: not eligible auto-proxying) 10:33:55 info .boot.context.embedded.tomcat.tomcatembeddedservletcontainer initialize tomcat initialized port(s): 8080 (http) 10:33:55 info org.springframework.web.context.contextloader ddedwebapplicationcontext root webapplicationcontext: initialization completed in 4473 ms 10:33:57 info pringframework.boot.context.embedded.servletregistrationbean onstartup mapping servlet: 'dispatcherservlet' [/] 10:33:57 info springframework.boot.context.embedded.filterregistrationbean configure mapping filter: 'characterencodingfilter' to: [/*] 10:33:57 info springframework.boot.context.embedded.filterregistrationbean configure mapping filter: 'hiddenhttpmethodfilter' to: [/*] 10:33:57 info org.springframework.oxm.jaxb.jaxb2marshaller atejaxbcontextfromclasses creating jaxbcontext classes bound [class com.vzt.ws.stubs.cca.ivrinfows.calldata,class com.vzt.ws.stubs.cca.ivrinfows.getcalldata,class com.vzt.ws.stubs.cca.ivrinfows.ivrtransfer,class com.vzt.ws.stubs.cca.ivrinfows.ivrtransferred,class com.vzt.ws.stubs.weather.alert,class com.vzt.ws.stubs.weather.dataset,class com.vzt.ws.stubs.weather.getall,class com.vzt.ws.stubs.weather.getallresponse,class com.vzt.ws.stubs.weather.weather,class com.hughestelematics.htimessageheader.messageheadert,class com.hughestelematics.xmlns.webservicesr.webservicesrrequest,class com.hughestelematics.xmlns.webservicesr.webservicesrreturn,class com.siebel.customui.updatesrtypeinput,class com.siebel.customui.updatesrtypeoutput,class com.hti.xmlns.webservicepstn.objectfactory,class com.hti.xmlns.webservicepstn.pstnrequestt,class com.hti.xmlns.webservicepstn.pstnreturnt,class com.hti.xmlns.webservicepstn.pstnoutput,class com.vti.ws.stubs.provisioning.applicationbasictype,class com.vti.ws.stubs.provisioning.applicationdetaillistrequest,class com.vti.ws.stubs.provisioning.applicationdetaillistresponse,class com.vti.ws.stubs.provisioning.applicationtype] 10:33:58 info org.springframework.jdbc.datasource.drivermanagerdatasource setdriverclassname loaded jdbc driver: oracle.jdbc.oracledriver 10:33:58 info .springframework.web.servlet.handler.simpleurlhandlermapping registerhandler mapped url path [/resources/**] onto handler 'org.springframework.web.servlet.resource.resourcehttprequesthandler#0' 10:33:58 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod mapped "{[/service/ctiagenttransfer/{profileid}],methods=[get]}" onto public com.vti.callcenter.model.transferprofile com.vti.callcenter.web.ctiagenttransfercontroller.gettransferprofilebyprofileid(java.lang.integer) 10:33:58 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod mapped "{[/service/ctiagenttransfer/]}" onto public java.util.hashmap<java.lang.integer, com.vti.callcenter.model.transferprofile> com.vti.callcenter.web.ctiagenttransfercontroller.gettransferprofiles() 10:33:58 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod mapped "{[/service/customagentroute/]}" onto public java.util.list<com.vti.callcenter.model.customroute> com.vti.callcenter.web.customagentroutecontroller.customagentroutes() 10:33:58 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod mapped "{[/service/customagentroute/{mdn}],methods=[get]}" onto public com.vti.callcenter.model.customroute com.vti.callcenter.web.customagentroutecontroller.getcustomrougebymdn(java.lang.string) 10:33:58 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod mapped "{[/service/ivrservice/getallroutes],methods=[get],produces=[application/json]}" onto public com.vti.callcenter.model.routeparamsmap com.vti.callcenter.web.ivrrestcontroller.getallrouteparms() 10:33:58 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod mapped "{[/service/ivrservice/validatednis],methods=[get],produces=[text/plain]}" onto public java.lang.string com.vti.callcenter.web.ivrrestcontroller.validatednis(java.lang.string,java.lang.string) 10:33:58 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod mapped "{[/service/middleware/getdevicedetails/{mdn}],methods=[get]}" onto public com.vti.callcenter.model.getdevicedetailsresponse com.vti.callcenter.web.middlewarerestcontroller.getdevicedetails(java.lang.string) 10:33:58 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod 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) 10:33:58 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.modelandview org.springframework.boot.autoconfigure.web.basicerrorcontroller.errorhtml(javax.servlet.http.httpservletrequest) 10:33:58 info b.servlet.mvc.method.annotation.requestmappinghandleradapter initcontrolleradvicecache looking @controlleradvice: org.springframework.boot.context.embedded.annotationconfigembeddedwebapplicationcontext@3b2c72c2: startup date [wed sep 30 10:33:51 edt 2015]; root of context hierarchy 10:33:58 info b.servlet.mvc.method.annotation.requestmappinghandleradapter initcontrolleradvicecache looking @controlleradvice: org.springframework.boot.context.embedded.annotationconfigembeddedwebapplicationcontext@3b2c72c2: startup date [wed sep 30 10:33:51 edt 2015]; root of context hierarchy 10:33:59 info b.servlet.mvc.method.annotation.requestmappinghandleradapter initcontrolleradvicecache looking @controlleradvice: org.springframework.boot.context.embedded.annotationconfigembeddedwebapplicationcontext@3b2c72c2: startup date [wed sep 30 10:33:51 edt 2015]; root of context hierarchy 10:33:59 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod mapped "{[/service/ctiagenttransfer/{profileid}],methods=[get]}" onto public com.vti.callcenter.model.transferprofile com.vti.callcenter.web.ctiagenttransfercontroller.gettransferprofilebyprofileid(java.lang.integer) 10:33:59 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod mapped "{[/service/ctiagenttransfer/]}" onto public java.util.hashmap<java.lang.integer, com.vti.callcenter.model.transferprofile> com.vti.callcenter.web.ctiagenttransfercontroller.gettransferprofiles() 10:33:59 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod mapped "{[/service/customagentroute/]}" onto public java.util.list<com.vti.callcenter.model.customroute> com.vti.callcenter.web.customagentroutecontroller.customagentroutes() 10:33:59 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod mapped "{[/service/customagentroute/{mdn}],methods=[get]}" onto public com.vti.callcenter.model.customroute com.vti.callcenter.web.customagentroutecontroller.getcustomrougebymdn(java.lang.string) 10:33:59 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod mapped "{[/service/ivrservice/getallroutes],methods=[get],produces=[application/json]}" onto public com.vti.callcenter.model.routeparamsmap com.vti.callcenter.web.ivrrestcontroller.getallrouteparms() 10:33:59 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod mapped "{[/service/ivrservice/validatednis],methods=[get],produces=[text/plain]}" onto public java.lang.string com.vti.callcenter.web.ivrrestcontroller.validatednis(java.lang.string,java.lang.string) 10:33:59 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod mapped "{[/service/middleware/getdevicedetails/{mdn}],methods=[get]}" onto public com.vti.callcenter.model.getdevicedetailsresponse com.vti.callcenter.web.middlewarerestcontroller.getdevicedetails(java.lang.string) 10:33:59 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod 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) 10:33:59 info b.servlet.mvc.method.annotation.requestmappinghandlermapping registerhandlermethod mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.modelandview org.springframework.boot.autoconfigure.web.basicerrorcontroller.errorhtml(javax.servlet.http.httpservletrequest) 10:33:59 info .springframework.web.servlet.handler.simpleurlhandlermapping registerhandler mapped url path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.resourcehttprequesthandler] 10:33:59 info .springframework.web.servlet.handler.simpleurlhandlermapping registerhandler mapped url path [/**] onto handler of type [class org.springframework.web.servlet.resource.resourcehttprequesthandler] 10:33:59 info .springframework.web.servlet.handler.simpleurlhandlermapping registerhandler mapped url path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.resourcehttprequesthandler] 10:33:59 info pringframework.jmx.export.annotation.annotationmbeanexporter tersingletonsinstantiated registering beans jmx exposure on startup 10:33:59 info .boot.context.embedded.tomcat.tomcatembeddedservletcontainer start tomcat started on port(s): 8080 (http) 10:33:59 info com.vti.application logstarted started application in 8.7 seconds (jvm running 9.813)
after copy pasting code page straight project didn't work. had 2 tabs in front of port needs spaces , between port, :, , 8282 there no space(it requires 1 space apparently) both of these issues caused load port 8080 me.(failed silently)
instead came this
server: port: 8282
and worked me.
Comments
Post a Comment