springboot启动访问页面报错

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Thu Nov 16 15:47:01 CST 2017
There was an unexpected error (type=Method Not Allowed, status=405).
Request method 'GET' not supported

15个回答

这个问题从两个方面来说哈,如果使用的是web-starter,没有跨域问题,那么问题就出现在你的Controller的RequestMapping的RequestMethod
上了,你看看你访问页面的跳转方法,是否是GET方法,你返回视图应该是通过一个方法返回的吧,Check这个方法。
嗯,不知道有没有跨域问题哈,如果有跨域的问题,需要单独设置请求头,写一个Filter

@Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain filter) throws IOException, ServletException {
        HttpServletResponse res = (HttpServletResponse) response;
        res.addHeader("Access-Control-Allow-Origin", "*");
        res.addHeader("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT");
        res.addHeader("Access-Control-Allow-Headers", "Content-Type");
        res.setCharacterEncoding("UTF-8");
        filter.doFilter(request, res);
    }

明显是不支持get访问啊、看下你控制层类或者方法注解上是不是限制了post或者其他的访问方式;再不然如果不是这个问题可以看下你项目里面的拦截器或者过滤器里面有没有过滤的get方式请求;

https://coding.net/u/pruidong/p/SpringInAction/git/tree/master/18

参考,这里面的都可以运行,

另外,你让跑起来,也要发源码啊,不发源码怎么跑得起来。。。

dcxy0
Q544471255 回复k872370761: There was an unexpected error (type=Method Not Allowed, status=405). Request method 'GET' not supported 提示的意思就是不能用GET访问,建议你用PostMan,然后可以用POST方式测试.你这个写法是POST的啊,昨天没注意
接近 2 年之前 回复
qq_21844321
qq_21844321 查看你的controller中是不是指定了只能post访问接口,@PostMapping 。浏览器访问的页面的时候用的get所以不支持。要改成@GetMapping或者@RequestMapping
接近 2 年之前 回复
k872370761
k872370761 源码 我放网盘里了 链接: https://pan.baidu.com/s/1cJcPci密码: 6rbt
接近 2 年之前 回复

打断点F6一步步看到底因为哪个地方出错的呀。你这样直接丢一堆异常信息出来.....况且异常信息里面是有指向类的,你进去看看是自己哪一步弄错了。不可能平白无故挂掉的

你检查一下网络状况,数据库连接地址以及用户名,密码等等

连接错误,哪个地方为空,自己打断点看看

项目是可以启动的,访问接口大部分限制了post请求是不能直接在浏览器上发起请求的

请求行中指定的请求方法不能被用于请求相应的资源。该响应必须返回一个Allow 头信息用以表示出当前资源能够接受的请求方法的列表。   鉴于 PUT,DELETE 方法会对服务器上的资源进行写操作,因而绝大部分的网页服务器都不支持或者在默认配置下不允许上述请求方法,对于此类请求均会返回405错误

查看你的controller中是不是指定了只能post访问接口,@PostMapping 。浏览器访问的页面的时候用的get所以不支持。要改成@GetMapping或者@RequestMapping

共15条数据 1 尾页
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
springboot学习笔记--启动springboot报错
小编在学习springboot的过程中遇到了启动报错的问题,具体错误如下: Error starting ApplicationContext. To display the auto-configuration report re-run your application with ‘debug’ enabled. 2018-11-11 12:39:15.923 ERROR 18872 — [ ...
启动springboot报错
Field pontusJobDao in cn.tongdun.datacompute.biz.pontus.service.Pontus2JobService required a bean of type 'cn.tongdun.datacompute.biz.pontus.dao.PontusJobDao' that could not be found. Action:
tomcat启动后,访问某页面报错
问题描述: rnrn myeclipse下开发项目,spring+struts2+hibernate并且项目用tomcat启,但是始终报如下的错误 rn 启动过程中没有报错,只是访问某个页面时报错 rnrnHTTP Status 500 - rnrn-------------------------------------------------------------------------------- rnrntype Exception report rnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request. rnrnexception rnrnjavax.servlet.ServletException: org.apache.jasper.JasperException: org.apache.jasper.JasperException: /WEB-INF/jsp/admin/introduction/article/List.jsp(119,24) According to TLD or attribute directive in tag file, attribute list does not accept any expressions rnorg.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515) rnorg.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419) rnorg.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) rnorg.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) rnorg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) rnorg.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96) rnorg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) rnrnrnroot cause rnrnorg.apache.jasper.JasperException: org.apache.jasper.JasperException: /WEB-INF/jsp/admin/introduction/article/List.jsp(119,24) According to TLD or attribute directive in tag file, attribute list does not accept any expressions rnorg.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:565) rnorg.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:354) rnorg.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) rnorg.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) rnjavax.servlet.http.HttpServlet.service(HttpServlet.java:803) rnorg.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) rnorg.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) rnorg.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:139) rnorg.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178) rncom.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348) rncom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253) rncom.mainone.interceptor.LoginInterceptor.doIntercept(LoginInterceptor.java:31) rncom.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) rncom.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) rncom.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) rncom.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) rncom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) rncom.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221) rncom.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) rncom.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) rncom.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) rncom.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) rncom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) rncom.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150) rnorg.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48) rncom.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) rnrnrn是什么原因啊?rnrnrn我的页面上就是用的struts2的标签,我发现如果去掉相关struts2的问题就的确不报错了,页面相应的内容是 rnrn rn rnrnrn
SpringBoot 访问不了页面
使用SpringBoot访问不了页面的原因 pom.xml 注释: <!--<!–解决mybatis-generator-maven-plugin运行时没有将jdbc.properites文件放入target文件夹的问题–>--> <!--<resource>--...
SpringBoot默认访问页面
     public void addViewControllers( ViewControllerRegistry registry ) {         registry.addViewController( "/" ).setViewName( "forward:/index.jsp" );         registry.setOrder( Ordered.HIGHEST_PRE...
关于springboot访问页面
前言springboot在访问页面的时候会有自己的一个方法。初学者在访问的时候会经常遇到问题,因此我单独把springboot访问页面的事单独提出来小说一下。(本测试使用maven来统一管理jar包)。springboot访问页面的方法本身而言(比如注解,视图解析器等)和springmvc+spring是一模一样的。因此本篇主要讲的还是项目结构或者配置方面的问题项目结构下面列举一下我关于spring
启动springboot的maven工程报错
org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'eurekaAutoServiceRegistration': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:216)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1080)rn at org.springframework.context.event.ApplicationListenerMethodAdapter.getTargetBean(ApplicationListenerMethodAdapter.java:283)rn at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:253)rn at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:177)rn at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:140)rn at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)rn at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)rn at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)rn at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393)rn at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:399)rn at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347)rn at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:991)rn at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:958)rn at org.springframework.cloud.context.named.NamedContextFactory.destroy(NamedContextFactory.java:76)rn at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:272)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:578)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:554)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:961)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:523)rn at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.destroySingletons(FactoryBeanRegistrySupport.java:230)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:968)rn at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1032)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:556)rn at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)rn at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)rn at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)rn at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)rn at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)rn at ins.platform.CommonApplication.main(CommonApplication.java:36)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)rn2018-05-30 09:31:59.084 [restartedMain] INFO o.s.b.a.l.AutoConfigurationReportLoggingInitializer -rn rnrnError starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.rn2018-05-30 09:31:59.092 [restartedMain] ERROR org.springframework.boot.SpringApplication -rn Application startup failedrnorg.springframework.context.ApplicationContextException: Failed to start bean 'outputBindingLifecycle'; nested exception is java.lang.IllegalStateException: org.springframework.context.annotation.AnnotationConfigApplicationContext@2f910e59 has been closed alreadyrn at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:178)rn at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:50)rn at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:348)rn at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:151)rn at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:114)rn at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:880)rn at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)rn at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)rn at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)rn at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)rn at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)rn at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)rn at ins.platform.CommonApplication.main(CommonApplication.java:36)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)rnCaused by: java.lang.IllegalStateException: org.springframework.context.annotation.AnnotationConfigApplicationContext@2f910e59 has been closed alreadyrn at org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1064)rn at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1079)rn at org.springframework.context.event.ApplicationListenerMethodAdapter.getTargetBean(ApplicationListenerMethodAdapter.java:283)rn at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:253)rn at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:177)rn at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:140)rn at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)rn at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)rn at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)rn at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393)rn at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:399)rn at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:399)rn at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347)rn at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)rn at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)rn at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)rn at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)rn at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)rn at org.springframework.cloud.stream.binder.DefaultBinderFactory.getBinderInstance(DefaultBinderFactory.java:214)rn at org.springframework.cloud.stream.binder.DefaultBinderFactory.getBinder(DefaultBinderFactory.java:155)rn at org.springframework.cloud.stream.binding.BindingService.getBinder(BindingService.java:155)rn at org.springframework.cloud.stream.binding.BindingService.bindProducer(BindingService.java:111)rn at org.springframework.cloud.stream.binding.BindableProxyFactory.bindOutputs(BindableProxyFactory.java:238)rn at org.springframework.cloud.stream.binding.OutputBindingLifecycle.start(OutputBindingLifecycle.java:57)rn at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:175)rn ... 18 common frames omitted
使用jenkins启动SpringBoot报错
jenkins启动SringBoot偶然报错!!!jenkins启动SpringBoot偶尔会报错!1、环境2、代码3、错误日志 jenkins启动SpringBoot偶尔会报错! 启动SpringBoot的项目的时候。 1、环境 springboot ; jdk 1.8 ; jenkins部署 。 2、代码 1.使用了AsyncTask; import org.springframework...
页面访问报错
我现在的项目在本地访问 这个页面没有问题rn但是我布置在外网后 在没有数据的情况下访问都会报Index was outside the bounds of the arrayrnrn我没有用到数组啊。怎么会这样rn而且在没有数据的情况下 页面只是一个静态的显示页面。根本没有请求数据库为什么会报数组越界呢?
dorado 访问页面报错!
页面错误!rn[code=HTML] rn9: rn10: rn11: rn[/code]rn部署信息:rn2012-10-9 17:02:15 org.apache.catalina.core.AprLifecycleListener initrn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Soft\MyEclipse 8.5\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;D:\apache-tomcat-6.0.14\binrn2012-10-9 17:02:15 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2012-10-9 17:02:15 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 309 msrn2012-10-9 17:02:15 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2012-10-9 17:02:15 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.14rn2012-10-9 17:02:15 org.apache.catalina.loader.WebappClassLoader validateJarFilern信息: validateJarFile(D:\apache-tomcat-6.0.14\webapps\HelloDorado\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.classrn2012-10-9 17:02:16 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2012-10-9 17:02:16 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2012-10-9 17:02:16 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/20 config=nullrn2012-10-9 17:02:16 org.apache.catalina.startup.Catalina startrn信息: Server startup in 455 msrnrn后台报错:rn2012-10-9 17:04:23 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.NullPointerExceptionrn at com.bstek.dorado.common.log.Log.getLevel(Log.java:93)rn at com.bstek.dorado.view.taglib.AbstractViewTag.doStartTag(AbstractViewTag.java:44)rn at org.apache.jsp.index_jsp._jspx_meth_d_005fView_005f0(index_jsp.java:98)rn at org.apache.jsp.index_jsp._jspService(index_jsp.java:71)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn
sharepoint页面访问报错
[color=#FF0000]已终止操作 (异常来自 HRESULT:0x80004004 (E_ABORT)) [/color]rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.Runtime.InteropServices.COMException: 已终止操作 (异常来自 HRESULT:0x80004004 (E_ABORT)) rnrn源错误: rnrnrn行 23: site.CatchAccessDeniedException = false; rn行 24: SPWeb web = site.OpenWeb(); rn行 25: foreach (SPUser user in web.Users) rn行 26: rn行 27: if (user.LoginName.ToLower() == account.ToLower()) rn rnrn源文件: c:\Inetpub\wwwroot\forum\aspx\1\forum_login.aspx.cs 行: 25 rnrn堆栈跟踪: rnrnrn[COMException (0x80004004): 已终止操作 (异常来自 HRESULT:0x80004004 (E_ABORT))] rn Microsoft.SharePoint.Library.SPRequestInternalClass.OpenWeb(String bstrUrl, String& pbstrServerRelativeUrl, String& pbstrTitle, String& pbstrDescription, Guid& pguidID, String& pbstrRequestAccessEmail, UInt32& pwebVersion, Guid& pguidScopeId, UInt32& pnAuthorID, UInt32& pnLanguage, UInt32& pnLocale, UInt16& pnTimeZone, Boolean& bTime24, Int16& pnCollation, UInt32& pnCollationLCID, Int16& pnCalendarType, Int16& pnAdjustHijriDays, Int16& pnAltCalendarType, Boolean& pbShowWeeks, Int16& pnFirstWeekOfYear, UInt32& pnFirstDayOfWeek, Int16& pnWorkDays, Int16& pnWorkDayStartHour, Int16& pnWorkDayEndHour, Int16& pnMeetingCount, Int32& plFlags, Boolean& bConnectedToPortal, String& pbstrPortalUrl, String& pbstrPortalName, Int32& plWebTemplateId, Int16& pnProvisionConfig, String& pbstrDefaultTheme, String& pbstrDefaultThemeCSSUrl, String& pbstrAlternateCSSUrl, String& pbstrCustomizedCssFileList, String& pbstrCustomJSUrl, String& pbstrAlternateHeaderUrl, String& pbstrMasterUrl, String& pbstrCustomMasterUrl, String& pbstrSiteLogoUrl, String& pbstrSiteLogoDescription, Object& pvarUser, Boolean& pvarIsAuditor, UInt64& ppermMask, Boolean& bUserIsSiteAdmin, Boolean& bHasUniquePerm, Guid& pguidUserInfoListID, Guid& pguidUniqueNavParent, Int32& plSiteFlags, DateTime& pdtLastContentChange, DateTime& pdtLastSecurityChange, String& pbstrWelcomePage) +0 rn Microsoft.SharePoint.Library.SPRequest.OpenWeb(String bstrUrl, String& pbstrServerRelativeUrl, String& pbstrTitle, String& pbstrDescription, Guid& pguidID, String& pbstrRequestAccessEmail, UInt32& pwebVersion, Guid& pguidScopeId, UInt32& pnAuthorID, UInt32& pnLanguage, UInt32& pnLocale, UInt16& pnTimeZone, Boolean& bTime24, Int16& pnCollation, UInt32& pnCollationLCID, Int16& pnCalendarType, Int16& pnAdjustHijriDays, Int16& pnAltCalendarType, Boolean& pbShowWeeks, Int16& pnFirstWeekOfYear, UInt32& pnFirstDayOfWeek, Int16& pnWorkDays, Int16& pnWorkDayStartHour, Int16& pnWorkDayEndHour, Int16& pnMeetingCount, Int32& plFlags, Boolean& bConnectedToPortal, String& pbstrPortalUrl, String& pbstrPortalName, Int32& plWebTemplateId, Int16& pnProvisionConfig, String& pbstrDefaultTheme, String& pbstrDefaultThemeCSSUrl, String& pbstrAlternateCSSUrl, String& pbstrCustomizedCssFileList, String& pbstrCustomJSUrl, String& pbstrAlternateHeaderUrl, String& pbstrMasterUrl, String& pbstrCustomMasterUrl, String& pbstrSiteLogoUrl, String& pbstrSiteLogoDescription, Object& pvarUser, Boolean& pvarIsAuditor, UInt64& ppermMask, Boolean& bUserIsSiteAdmin, Boolean& bHasUniquePerm, Guid& pguidUserInfoListID, Guid& pguidUniqueNavParent, Int32& plSiteFlags, DateTime& pdtLastContentChange, DateTime& pdtLastSecurityChange, String& pbstrWelcomePage) +323 rnrn[SPException: 已终止操作 (异常来自 HRESULT:0x80004004 (E_ABORT))] rn Microsoft.SharePoint.Library.SPRequest.OpenWeb(String bstrUrl, String& pbstrServerRelativeUrl, String& pbstrTitle, String& pbstrDescription, Guid& pguidID, String& pbstrRequestAccessEmail, UInt32& pwebVersion, Guid& pguidScopeId, UInt32& pnAuthorID, UInt32& pnLanguage, UInt32& pnLocale, UInt16& pnTimeZone, Boolean& bTime24, Int16& pnCollation, UInt32& pnCollationLCID, Int16& pnCalendarType, Int16& pnAdjustHijriDays, Int16& pnAltCalendarType, Boolean& pbShowWeeks, Int16& pnFirstWeekOfYear, UInt32& pnFirstDayOfWeek, Int16& pnWorkDays, Int16& pnWorkDayStartHour, Int16& pnWorkDayEndHour, Int16& pnMeetingCount, Int32& plFlags, Boolean& bConnectedToPortal, String& pbstrPortalUrl, String& pbstrPortalName, Int32& plWebTemplateId, Int16& pnProvisionConfig, String& pbstrDefaultTheme, String& pbstrDefaultThemeCSSUrl, String& pbstrAlternateCSSUrl, String& pbstrCustomizedCssFileList, String& pbstrCustomJSUrl, String& pbstrAlternateHeaderUrl, String& pbstrMasterUrl, String& pbstrCustomMasterUrl, String& pbstrSiteLogoUrl, String& pbstrSiteLogoDescription, Object& pvarUser, Boolean& pvarIsAuditor, UInt64& ppermMask, Boolean& bUserIsSiteAdmin, Boolean& bHasUniquePerm, Guid& pguidUserInfoListID, Guid& pguidUniqueNavParent, Int32& plSiteFlags, DateTime& pdtLastContentChange, DateTime& pdtLastSecurityChange, String& pbstrWelcomePage) +364 rn Microsoft.SharePoint.SPWeb.InitWeb() +1135 rn Microsoft.SharePoint.SPWeb.get_SecurableObjectImpl() +37 rn Microsoft.SharePoint.SPWeb.get_RoleAssignments() +25 rn Microsoft.SharePoint.SPWeb.get_Users() +25 rn aspx_1_forum_login.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\forum\aspx\1\forum_login.aspx.cs:25 rn System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15 rn System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34 rn System.Web.UI.Control.OnLoad(EventArgs e) +99 rn System.Web.UI.Control.LoadRecursive() +47 rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061 rnrn
springboot启动后访问404
Spring boot启动正常,访问报404解决方法1解决方法2解决方法3 解决方法1 检查启动类是否放在所有包的父目录; 或者启动类增加注解@ComponentScan(basePackages={"com.demo.test.*"}) 解决方法2 在Controller中,使用@RestController注解; 或者使用@Controller注解类,并且使用@ResponseBody注解方...
springboot 启动正常,访问404
使用了org.springframework的spring-web依赖, 而不是org.springframework.boot的spring-boot-starter-web 错误的依赖 <dependency> <groupId>org.springframework</groupId> <arti...
SpringBoot报错(八)返回页面报错
2017-11-09 15:36:51.563 ERROR 2448 --- [p-nio-88-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Could no...
springboot启动没报错但是访问不到url
检查下有没有输出如下部分,没有的话就是没有启动内置的tomcat,可以注释掉scope解决 org.springframework.boot spring-boot-starter-tomcat provided-->
Springboot 页面访问不到静态资源
问题: 在HTML文件中引入图片,但是浏览器访问不到图片。 index.html: <!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>Helllo Jenkin
Springboot项目启动后访问Controller报错404
1: 查看启动类, 确保项目启动时,有扫描到对应的controller.  (在这里我们一般会在启动类上贴一个 @ComponentScan 注解来指定扫描路径)    2: 在确保项目启动时有扫描到controller后, 检查controller方法的url是否配置正确 ...
JSP下启动无报错,网页访问报错
[img=https://img-bbs.csdn.net/upload/201611/03/1478160108_372582.png][/img]rnrnJSP在eclipse下启动未报错,网页访问时报如图错误,初学小白求教高手指点。
springboot启动项目后不能访问templates下的页面
所有的配置该配置的都配置了,访问网址的时候,能进控制器,就是不能进页面, 后来发现不是哪里配置的原因,是因为pom文件里配置的jar包没有生效 解决办法:打开maven窗口,刷新maven,dependences下面就生成jar包 有了jar就可以了。...
tomcat启动成功,访问报错
org.apache.jasper.JasperException: /tspweb/jsp/index.jsp (line: 9, column: 2) Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV at org.apache.jasper...
访问aspx页面报错404
今晚给服务器安装了个六台阶的系统,用.net做的网站,页面后缀当然是.aspx啦,安装一切顺利,全自动处理。安装完毕后,用IE访问却报404错误,开始以为是路径问题,检查站点属性,站点文件夹权限,一切正常,于是新建测试页面test.html以及test.asp,均能正常访问。确定问题出在IIS处理aspx页面不成功上,检查站点属性-配置出对于aspx页面的处理程序,没问题,静下心来想想,忽然想起I...
jenkins 打开页面 访问报错
刚把build.xml文件配置成功,可以ant构建了,打开jenkins提示报错   在网上查了好多方法,最后一个博客给的解决办法是 把jenkins的配置文件改名字, 先把jenkins服务停止,改配置文件名字,再重启jenkins,居然可以访问了, 也有人说是jdk版本的问题,不清楚, 不过产生的另一个问题是,通过命令行,无法启动或者关闭jenkins  启动关闭 命令   n...
访问IIS页面插入数据报错
访问IIS页面插入数据报错rn用户 '959A135753474DB\ASPNET' 登录失败。 rn说用户登录失败 rn 我已经在IIS6.0的编辑上盖为ASPNET用户了
nginx 启动访问不了页面
win10安装nginx,启动nginx访问不到,网上找半天没找到,后来发现如此简单,特此总结如下: 1、记住看日志,特别是像nginx这样,启动完不管正常与否都是dos窗口闪一下就没掉,不看日志没办法追踪问题; 2、80端口占用,换端口,从新来。注意换完端口后就不能再直接输入localhost访问,需要加改变后的端口访问,如图。
eclipse中Springboot启动,jdbc连接池报错
在eclipse中启动Springboot,报错如下 APPLICATION FAILED TO START Description: Cannot determine embedded database driver class for database type NONE Action: If you want an embedded database please put a suppo...
关于SpringBoot启动类报错的问题解决
在SpringBoot的Maven项目中 SpringBoot的启动类报错为: The type org.springframework.context.ConfigurableApplicationContext cannot be resolved. It is indirectly referenced from required .class files 如图: 查找相关的文章 应该是
用springboot创建入门程序,访问报错
错误页码如下: Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Thu Jan 04 16:38:31 CST 2018 There was an unexpected error (type=Not Fo
springboot 热部署图片上传访问本地路径报错
1. 上传路径 // 图片存储地址 不能直接目录是upload 会报错,必须添加子目录 String uploadDir = request.getSession().getServletContext().getRealPath("/") + "upload/images"+"/"; 2.路径映射 registry.addResourceHandler("/upload/**")....
SpringBoot在Tomcat下面启动,访问路径
这个问题可能只仅仅和我的本身的项目有关 我之前有一个项目,然后要新建一个项目,所以直接将原来的项目copy了过去 一切都很顺利,但是项目启动的路径,还是原来的访问的路径 让我很是头疼,怎么办 而且关键的是pom.xml我也进行了修改,但是访问的路径还是原来的路径 我本来可以按照原来的趋势在上面进行修改呗 但是发现,修改了半天居然还是这个样子 怎么办??,怎办? 我想到这个可能和...
springboot正常启动但访问404
一 、spring boot的启动类不能直接放在main(src.java.main)这个包下面,把它放在有包的里面就可以了。  二 、正常启动了,但是我写了一个controller ,用的@RestController 注解去配置的controller,然后路径也搭好了,但是浏览器一直报404.最后原因是:          spring boot只会扫描启动类当前包和以下的包  。 如果将...
修改springboot启动默认端口和访问路径
1./src/main/resources下新建application.properties server.port=8088 server.servlet.context-path=/HelloSpring 2.重新启动App.java生效 3.访问 http://localhost:8088/HelloSpring
springBoot启动成功,访问出现以下问题
[b]ShiroConfig类[/b]rnpackage com.pro.core.shiro.service;rnrnimport com.pro.core.shiro.CustomShiroSessionDAO;rnimport com.pro.core.shiro.cache.JedisManager;rnimport com.pro.core.shiro.cache.JedisShiroSessionRepository;rnimport com.pro.core.shiro.cache.impl.CustomShiroCacheManager;rnimport com.pro.core.shiro.cache.impl.JedisShiroCacheManager;rnimport com.pro.core.shiro.filter.*;rnimport com.pro.core.shiro.listenter.CustomSessionListener;rnimport com.pro.core.shiro.service.impl.ShiroManagerImpl;rnimport com.pro.core.shiro.session.CustomSessionManager;rnimport com.pro.core.shiro.token.SampleRealm;rnimport org.apache.shiro.codec.Base64;rnimport org.apache.shiro.session.SessionListener;rnimport org.apache.shiro.session.mgt.ExecutorServiceSessionValidationScheduler;rnimport org.apache.shiro.session.mgt.SessionManager;rnimport org.apache.shiro.session.mgt.eis.JavaUuidSessionIdGenerator;rnimport org.apache.shiro.spring.LifecycleBeanPostProcessor;rnimport org.apache.shiro.spring.web.ShiroFilterFactoryBean;rnimport org.apache.shiro.web.mgt.CookieRememberMeManager;rnimport org.apache.shiro.web.mgt.DefaultWebSecurityManager;rnimport org.apache.shiro.web.servlet.SimpleCookie;rnimport org.apache.shiro.web.session.mgt.DefaultWebSessionManager;rnimport org.hibernate.mapping.Collection;rnimport org.springframework.beans.factory.annotation.Autowired;rnimport org.springframework.beans.factory.config.MethodInvokingFactoryBean;rnimport org.springframework.boot.web.servlet.FilterRegistrationBean;rnimport org.springframework.context.annotation.Bean;rnimport org.springframework.context.annotation.Configuration;rnimport org.apache.shiro.mgt.SecurityManager;rnimport org.springframework.web.filter.DelegatingFilterProxy;rnimport redis.clients.jedis.JedisPool;rnimport redis.clients.jedis.JedisPoolConfig;rnrnimport javax.servlet.Filter;rnimport java.util.LinkedHashMap;rnimport java.util.LinkedList;rnimport java.util.List;rnimport java.util.Map;rnrn@Configurationrnpublic class ShiroConfig rnrn @Beanrn public ShiroManagerImpl shiroManager(ShiroFilterFactoryBean factoryBean)rn ShiroManagerImpl shiroManager = new ShiroManagerImpl();rn shiroManager.setShiroFilterFactoryBean(factoryBean);rn return shiroManager;rn rn @Beanrn public FilterRegistrationBean delegatingFilterProxy()rn FilterRegistrationBean registrationBean = new FilterRegistrationBean();rn DelegatingFilterProxy proxy = new DelegatingFilterProxy();rn proxy.setTargetFilterLifecycle(true);rn proxy.setTargetBeanName("shiroFilter");rn registrationBean.setFilter(proxy);rn return registrationBean;rn rnrnrn @Autowiredrn private LoginFilter login;rn @Autowiredrn private RoleFilter role;rn @Autowiredrn private PermissionFilter permission;rn @Autowiredrn private SimpleAuthFilter simple;rn @Autowiredrn private KickoutSessionFilter kickout;rn @Autowiredrn private SampleRealm realm;rn @Bean(name = "shiroFilter")rn public ShiroFilterFactoryBean shiroFilter()rn ShiroFilterFactoryBean shiroFilterFactoryBean = new ShiroFilterFactoryBean();rn shiroFilterFactoryBean.setSecurityManager(securityManager());rn shiroFilterFactoryBean.setLoginUrl("/u/login");rn shiroFilterFactoryBean.setSuccessUrl("/");rn shiroFilterFactoryBean.setUnauthorizedUrl("/open/login");rn //自定义拦截器rn Map filterMap = new LinkedHashMap();rn filterMap.put("login",login);rn filterMap.put("role",role);rn filterMap.put("simple",simple);rn filterMap.put("permission",permission);rn filterMap.put("kickout",kickout);rn shiroFilterFactoryBean.setFilters(filterMap);rn //权限控制maprn shiroFilterFactoryBean.setFilterChainDefinitions(shiroManager(shiroFilterFactoryBean).loadFilterChainDefinitions());rn return shiroFilterFactoryBean;rn rn @Beanrn public SecurityManager securityManager()rn DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager();rn //设置realmrn securityManager.setRealm(realm);rn // 自定义缓存实现 使用redisrn securityManager.setCacheManager(customShiroCacheManager());rn //自定义session管理器rn securityManager.setSessionManager(sessionManager());rn //remember管理器rn securityManager.setRememberMeManager(rememberMeManager());rn return securityManager;rn rnrn @Beanrn public CustomSessionManager customSessionManager()rn CustomSessionManager customSessionManager = new CustomSessionManager();rn customSessionManager.setCustomShiroSessionDAO(customShiroSessionDAO());rn customSessionManager.setShiroSessionRepository(jedisShiroSessionRepository());rn return customSessionManager;rn rnrn @Beanrn public CustomShiroSessionDAO customShiroSessionDAO()rn CustomShiroSessionDAO customShiroSessionDAO = new CustomShiroSessionDAO();rn customShiroSessionDAO.setShiroSessionRepository(jedisShiroSessionRepository());rn customShiroSessionDAO.setSessionIdGenerator(sessionIdGenerator());rn return customShiroSessionDAO;rn rn @Beanrn public JedisShiroSessionRepository jedisShiroSessionRepository()rn JedisShiroSessionRepository repository = new JedisShiroSessionRepository();rn repository.setJedisManager(jedisManager());rn return repository;rn rn @Beanrn public JavaUuidSessionIdGenerator sessionIdGenerator()rn return new JavaUuidSessionIdGenerator();rn rn @Beanrn public JedisManager jedisManager()rn JedisManager jedisManager = new JedisManager();rn jedisManager.setJedisPool(jedisPool());rn return jedisManager;rn rn //redis 配置,也可以把配置挪到properties配置文件中,再读取rn @Beanrn public JedisPool jedisPool()rn return new JedisPool(jedisPoolConfig(),"127.0.0.1",6379,5000);rn rnrn @Beanrn public JedisPoolConfig jedisPoolConfig()rn JedisPoolConfig jedisPoolConfig = new JedisPoolConfig();rn jedisPoolConfig.setMaxIdle(100);//最大闲置rn jedisPoolConfig.setMinIdle(10);//最小闲置rn jedisPoolConfig.setTestOnBorrow(true);//可以获取rn return jedisPoolConfig;rn rn @Beanrn public CustomShiroCacheManager customShiroCacheManager()rn CustomShiroCacheManager shiroCacheManager = new CustomShiroCacheManager();rn shiroCacheManager.setShiroCacheManager(jedisShiroCacheManager());rn return shiroCacheManager;rn rn @Beanrn public JedisShiroCacheManager jedisShiroCacheManager()rn JedisShiroCacheManager jedisShiroCacheManager = new JedisShiroCacheManager();rn jedisShiroCacheManager.setJedisManager(jedisManager());rn return jedisShiroCacheManager;rn rnrn @Beanrn public DefaultWebSessionManager sessionManager()rn DefaultWebSessionManager sessionManager = new DefaultWebSessionManager();rn sessionManager.setSessionValidationInterval(1800000);//相隔多久检查一次session的有效性rn sessionManager.setGlobalSessionTimeout(1800000);//session 有效时间为半小时 (毫秒单位)rn sessionManager.setSessionDAO(customShiroSessionDAO());rn sessionManager.setSessionListeners(listenerCollection());rn sessionManager.setSessionValidationScheduler(sessionValidationScheduler(sessionManager));rn sessionManager.setSessionValidationSchedulerEnabled(true);rn sessionManager.setDeleteInvalidSessions(true);rn sessionManager.setSessionIdCookie(sessionIdCookie());rn return sessionManager;rn rn @Beanrn public List listenerCollection()rn List sessionListeners = new LinkedList();rn sessionListeners.add(customSessionListener());rn return sessionListeners;rn rn @Beanrn public CustomSessionListener customSessionListener()rn CustomSessionListener customSessionListener = new CustomSessionListener();rn customSessionListener.setShiroSessionRepository(jedisShiroSessionRepository());rn return customSessionListener;rn rn @Beanrn public SimpleCookie sessionIdCookie()rn SimpleCookie simpleCookie = new SimpleCookie();rn simpleCookie.setValue("v_v-s-baidu");rn simpleCookie.setHttpOnly(true);rn simpleCookie.setMaxAge(-1);rn simpleCookie.setDomain("www.baidu.com");rn return simpleCookie;rn rn //remember管理器rn @Beanrn public CookieRememberMeManager rememberMeManager()rn CookieRememberMeManager manager = new CookieRememberMeManager();rn manager.setCipherKey(Base64.decode("3AvVhmFLUs0KTA3Kprsdag=="));rn manager.setCookie(rememberMeCookie());rn return manager;rn rn //用户信息记住我功能的相关配置rn @Beanrn public SimpleCookie rememberMeCookie()rn SimpleCookie cookie = new SimpleCookie();rn cookie.setValue("v_v-re-baidu");rn cookie.setHttpOnly(true);rn cookie.setDomain("www.baidu.com");rn cookie.setMaxAge(259000);//记住我30天rn return cookie;rn rn @Beanrn public ExecutorServiceSessionValidationScheduler sessionValidationScheduler(DefaultWebSessionManager sessionManager)rn ExecutorServiceSessionValidationScheduler scheduler = new ExecutorServiceSessionValidationScheduler();rn scheduler.setInterval(18000000);rn scheduler.setSessionManager(sessionManager);rn return scheduler;rn rnrnrnrn启动异常rnjava.lang.IllegalStateException: Cookie name cannot be null/empty.rn at org.apache.shiro.web.servlet.SimpleCookie.buildHeaderValue(SimpleCookie.java:242) ~[shiro-all-1.2.5.jar:1.2.5]rn at org.apache.shiro.web.servlet.SimpleCookie.addCookieHeader(SimpleCookie.java:222) ~[shiro-all-1.2.5.jar:1.2.5]rn at org.apache.shiro.web.servlet.SimpleCookie.saveTo(SimpleCookie.java:215) ~[shiro-all-1.2.5.jar:1.2.5]rn at org.apache.shiro.web.session.mgt.DefaultWebSessionManager.storeSessionId(DefaultWebSessionManager.java:89) ~[shiro-all-1.2.5.jar:1.2.5]rn at org.apache.shiro.web.session.mgt.DefaultWebSessionManager.onStart(DefaultWebSessionManager.java:243) ~[shiro-all-1.2.5.jar:1.2.5]rn at org.apache.shiro.session.mgt.AbstractNativeSessionManager.start(AbstractNativeSessionMa
springboot项目启动,但是访问报404错误
        今天在做一个springboot项目的时候,是接着别人的项目写的,写完之后想做一下测试,于是就启动了springboot,然后在放问的时候,一直包404的错误,然后百度了一下网上给的方法,包括注解使用@RestController,然后去除掉方法@RequestMapping(value = "/add")中的“value=”,这个方法对我无用,因为我的项目之前就是用的@RestC...
springboot踩坑记--springboot正常启动但访问404
   一 spring boot的启动类不能直接放在main(src.java.main)这个包下面,把它放在有包的里面就可以了。 二 正常启动了,但是我写了一个controller ,用的@RestController 注解去配置的controller,然后路径也搭好了,但是浏览器一直报404.最后原因是,spring boot只会扫描启动类当前包和以下的包  。 如果将 spring boot...
【SpringBoot】WAR包下访问页面404
在idea中正常,打成JAR包在本地依然没有问题,但是打成WAR包访问页面一直出现问题 原因:spring boot内置Tomcat与外置Tomcat冲突 解决:去掉内嵌tomcat <dependency> <groupId>org.springframework.boot</groupId> <artifactI...
springboot访问jsp一直跳转下载页面
问题:springboot访问jsp页面一直跳转下载页面 原因:少了相关的依赖包 :下面是相关依赖包的支持 <!-- 引入Spring Boot 内嵌的Tomcat对jsp的解析包--> <dependency> <groupId>org.apache.tomcat.embed</groupId> <a...
SpringBoot配置访问druid内置监控页面
1、首先加入druid依赖 最近在学习spring boot,然后尝试使用druid进行SQL监控,但是一直没有数据,纠结了好久,突然看见引的依赖应该是 <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artif...
springBoot项目用jar包 访问不到页面
在controller层的返回页面前 去掉/  就好了   实测!@RequestMapping("/") public String index(){ return "index"; }return 返回的不要加 /  
修改springboot项目默认访问页面路径
我的本意是打算在访问例如localhost:6001这样的时候就可以跳转到指定的html界面 一次错误的尝试: 在application.yml文件中 server: context-path: /admin/account/login 上面的/admin/account/login就是我想要配置的默认的访问路径 然而实际上这样配置的意思是整个项目都会在访问的时候加上这样的路径 例如你的re...
eureka 启动之后访问报错,怎么解决
用的spring-cloud-starter-netflix-eureka-server版本是 2.0.0.RELEASErn报错信息:rn[code=java]rnFTL stack trace ("~" means nesting-related):rn - Failed at: $replica.key [in template "eureka/navbar.ftl" at line 68, column 60]rn - Reached through: #include "navbar.ftl" [in template "eureka/status.ftl" at line 22, column 7]rn----rn at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134) ~[freemarker-2.3.28.jar:2.3.28]rn at freemarker.core.EvalUtil.coerceModelToTextualCommon(EvalUtil.java:467) ~[freemarker-2.3.28.jar:2.3.28]rn at freemarker.core.EvalUtil.coerceModelToStringOrMarkup(EvalUtil.java:389) ~[freemarker-2.3.28.jar:2.3.28]rn at freemarker.core.EvalUtil.coerceModelToStringOrMarkup(EvalUtil.java:358) ~[freemarker-2.3.28.jar:2.3.28]rn at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:100) ~[freemarker-2.3.28.jar:2.3.28]rn at freemarker.core.DollarVariable.accept(DollarVariable.java:63) ~[freemarker-2.3.28.jar:2.3.28]rn at freemarker.core.Environment.visit(Environment.java:366) [freemarker-2.3.28.jar:2.3.28]rn ....rn2018-07-31 17:41:11.147 ERROR 64984 --- [io-8761-exec-10] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:rn==> replica.key [in template "eureka/navbar.ftl" at line 68, column 62]rn....rn[/code]rn[img=https://img-bbs.csdn.net/upload/201807/31/1533031988_786250.jpg][/img]
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法