druid登录404

发布于 2022-01-03 01:08:12 字数 8252 浏览 916 评论 1

环境jdk1.8

yml配置部分

入口

druidconfig类配置

控制台输出

_ |__ _____     __| _// ______| _____|  |__   ___________
 | __ \__     / __ |   __|  |/  ___/  |  _/ __ _  __
 | _ / __ _/ /_/ | |  |  |  |___ |   Y  h  ___y|  | /
 |___  (____  /____ | |__|  |__/____  >___|  /___  >__|   
     /     /      /               /     /     /       
     
|Badfisher |RongXing |  APPLICATION|Version :1.0|
2019-07-25 21:49:31.471  INFO 11048 --- [           main] com.forme.rongxing.BadfisherApplication  : Starting BadfisherApplication on DESKTOP-01E325H with PID 11048 (E:eclipseworksplacerongxingtargetclasses started by yhy in E:eclipseworksplacerongxing)
2019-07-25 21:49:31.477  INFO 11048 --- [           main] com.forme.rongxing.BadfisherApplication  : No active profile set, falling back to default profiles: default
2019-07-25 21:49:33.365  WARN 11048 --- [           main] o.m.s.mapper.ClassPathMapperScanner      : No MyBatis mapper was found in '[com.forme.rongxing.**.dao]' package. Please check your configuration.
2019-07-25 21:49:33.654  WARN 11048 --- [           main] o.m.s.mapper.ClassPathMapperScanner      : No MyBatis mapper was found in '[com.forme.rongxing]' package. Please check your configuration.
2019-07-25 21:49:34.306  INFO 11048 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$4c40cfb0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-07-25 21:49:35.400  INFO 11048 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8888 (http)
2019-07-25 21:49:35.471  INFO 11048 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2019-07-25 21:49:35.471  INFO 11048 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.16]
2019-07-25 21:49:35.490  INFO 11048 --- [           main] o.a.catalina.core.AprLifecycleListener   : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:Program FilesJavajdk1.8.0_131bin;C:windowsSunJavabin;C:windowssystem32;C:windows;C:/Program Files/Java/jre1.8.0_131/bin/server;C:/Program Files/Java/jre1.8.0_131/bin;C:/Program Files/Java/jre1.8.0_131/lib/amd64;C:ProgramDataOracleJavajavapath;D:maven3.3apache-maven-3.3.9bin;C:windowssystem32;C:windows;C:windowsSystem32Wbem;C:windowsSystem32WindowsPowerShellv1.0;C:Program FilesJavajdk1.8.0_131bin;C:Program FilesJavajdk1.8.0_131jrebin;D:Mysqlmysql-5.7.17-winx64bin;C:Program FilesTortoiseSVNbin;C:windowsSystem32OpenSSH;C:UsersyhyAppDataLocalMicrosoftWindowsApps;;E:吃饭的家伙们Eclipseeclipseideeclipse;;.]
2019-07-25 21:49:35.760  INFO 11048 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2019-07-25 21:49:35.761  INFO 11048 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 4179 ms
2019-07-25 21:49:36.040  INFO 11048 --- [           main] o.s.boot.web.servlet.RegistrationBean    : Servlet statViewServlet was not registered (possibly already registered?)
2019-07-25 21:49:36.048  INFO 11048 --- [           main] o.s.boot.web.servlet.RegistrationBean    : Filter webStatFilter was not registered (possibly already registered?)
2019-07-25 21:49:36.144  INFO 11048 --- [           main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
2019-07-25 21:49:36.587  INFO 11048 --- [           main] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} inited
2019-07-25 21:49:37.758  INFO 11048 --- [           main] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)]
2019-07-25 21:49:38.087  INFO 11048 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2019-07-25 21:49:38.812  INFO 11048 --- [           main] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed
2019-07-25 21:49:38.909  INFO 11048 --- [           main] d.s.w.p.DocumentationPluginsBootstrapper : Found 1 custom documentation plugin(s)
2019-07-25 21:49:39.111  INFO 11048 --- [           main] s.d.s.w.s.ApiListingReferenceScanner     : Scanning for api listing references
2019-07-25 21:49:39.634  INFO 11048 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8888 (http) with context path ''
2019-07-25 21:49:39.642  INFO 11048 --- [           main] com.forme.rongxing.BadfisherApplication  : Started BadfisherApplication in 9.028 seconds (JVM running for 9.762)
2019-07-25 21:49:58.704  INFO 11048 --- [nio-8888-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2019-07-25 21:49:58.705  INFO 11048 --- [nio-8888-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2019-07-25 21:49:58.721  INFO 11048 --- [nio-8888-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 16 ms

 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

初见你 2022-01-03 14:56:00

用的是druid-spring-boot-starter这个吗?

感觉yml配置有点问题

DruidStatProperties 这个里面

应该是配置成下面这样感觉

你的yml这儿的格式为啥没有换行呢 也是正常的吗

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文