最近启动springboot项目访问localhost老报找不到网页,找了很久发现yml配置文件中配置了“context.path”,只要在端口号后面加上context.path地址就可以访问了。
》》》
2022-06-17 17:30:11.661 DEBUG 4380 --- [nio-8050-exec-6] c.z.v.v.dao.VectorTileMapper.selectTile : ==> Preparing: SELECT ST_AsMVT (tile, 'points') tile FROM ( SELECT st_asmvtgeom (t.geom, st_makeenvelope (?, ?, ?,?, 4326), 4096, 0, TRUE ) AS geom FROM vector_tile t ) AS tile WHERE tile.geom IS NOT NULL; 2022-06-17 17:30:11.682 DEBUG 4380 --- [nio-8050-exec-6] c.z.v.v.dao.VectorTileMapper.selectTile : ==> Parameters: 17820.0(Double), -90.0(Double), 18000.0(Double), -90.0(Double) 2022-06-17 17:30:11.701 INFO 4380 --- [nio-8050-exec-6] o.s.b.f.xml.XmlBeanDefinitionReader : Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml] 2022-06-17 17:30:11.740 INFO 4380 --- [nio-8050-exec-6] o.s.jdbc.support.SQLErrorCodesFactory : SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase, Hana] 2022-06-17 17:30:11.760 ERROR 4380 --- [nio-8050-exec-6] o.a.c.c.C.[.[.[.[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [/zgis] threw exception [Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException: ### Error querying database. Cause: org.postgresql.util.PSQLException: 错误: 关系 "vector_tile" 不存在 位置:240