ctripcorp / dal Goto Github PK
View Code? Open in Web Editor NEWCtrip Database Access Layer
License: Apache License 2.0
Ctrip Database Access Layer
License: Apache License 2.0
demo中的 dbsetup.sql 没找到在哪里、请查阅核实。
DAL团队,您们好!
我想咨询下目前github上的DAL版本那几个是最新可用的;比如我看里面有cluster的相关版本。还有DAL目前咱们携程后续还会继续维护吗?
烦请告知,多谢携程的DAL团队
请问
queryAllByPage(1, 10, new DalHints().inAllShards().inTableShard(1))
能做排序吗,比如dal-demo例子里想按CountryId做排序
数据分片之后需要将结果聚合返回,这个是在客户端实现的功能么? 还有比如要进行AVG的操作,是否会智能化为:再各个分库执行COUNT和TOTAL,然后进行AVG=(n_TOTAL)/(n_COUNT)的结果返回?
Line 37 in b63bc51
CVE-2020-1938 CVE-2019-0232 CVE-2018-8014 CVE-2020-13935
Recommended upgrade version:7.0.106
管理系统有开源代码和demo么
代码生成器页面
添加数据库时:
All-In-One Name 是指?
Line 38 in b63bc51
CVE-2018-3258 CVE-2019-2692 CVE-2020-2934 CVE-2020-2875 CVE-2020-2933
Recommended upgrade version:8.0.20
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet</artifactId>
<version>${javax.servlet-version}</version>
<scope>provided</scope>
</dependency>
编译dal-client时,如上依赖在maven**仓库找不到,版本号为3.0.0.v201103241009,是携程内部版本吗
我的部署环境jdk1.8 tomcat8 mysql5.5 utf8mb4
不知为何中文乱码,在数据库中就是乱码的
请问这种情况是哪里设置的有问题吗?
已解决,在连接字符串里指定这俩参数记好了。。
useUnicode=true&characterEncoding=utf-8
在启动页面设置数据库之后,连接测试通过,但是保存就报错,控制台都是NPE,初始化数据失败。
具体现象就是 #31 所描述。
dal-dao-gen的 classpath 内可以看到 页面输入的datasource,数据库连接信息,用户名密码都保存在datasource.xml,是否和程序设计的原则不符合?推测原本是存储连接池属性的,没有看到 datasource.properties 这个文件,或者是 jdbc.properties?
PropertyFileConnectionStringProvider 这个类只有测试用例在引用,推测用于解析上一步保存的文件,根据源码,文件应该叫做datasource.properties,但没有在 DataSourceConfigureParser / DefaultDataSourceConfigureLocator 等类中使用,没有看到解析ConnectionString 和 更新connectionStrings缓存 的相关代码。
非常感谢,很期待能够使用贵公司的DAL。
Line 34 in 83ccc25
第一个maven坐标:
<dependency> <groupId>com.microsoft.sqlserver</groupId> <artifactId>sqljdbc</artifactId> <version>${sqljdbc-version}</version> </dependency>
第二个mavne坐标:
<dependency> <groupId>org.jasig.cas.client</groupId> <artifactId>cas-client-core-infosec-credis</artifactId> <version>${jasig-cas-version}</version> </dependency>
貌似maven**库中没有、请核实。谢谢!!!
我在dal.xml定义了一个主数据源,其他数据源定义在这个主数据源的表里,那么我怎样连接这些表里的数据源,绕开dal.xml,有没有提供这样的方法?
I wanna define main data source in dal.xml, define other data source in table of major data source
How can I connecting other data source in table of major data source?
Need Replace the
setValue.Body as MemberExpression;
to
var member = GetMemberExpression(setValue);
The extend func
private static MemberExpression GetMemberExpression<TField>(Expression<Func<T, TField>> exp)
{
var member = exp.Body as MemberExpression;
var unary = exp.Body as UnaryExpression;
return member ?? (unary != null ? unary.Operand as MemberExpression : null);
}
你好,建表语句里面是databaseset,表名都是小写,但是后台报错
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT id, name, provider, shardingStrategy, groupId, update_user_no, update_time FROM databaseSet WHERE name = ?]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'ctrip.databaseSet' doesn't exist
查询语句的表名(databaseSet)是大写,我的mysql数据库是区分大小写的,改成不区分大小写?
项目中使用了接口来代替具体的类进行编程,很多Java实践中一般也会这么写,例如IOrderDao和OrderDao这种。
但现在框架生成的代码中我看会直接给一个OrderDao,不知道是没用对还是框架中没有提供这样的功能呢。在给出的Java Demo中好像也没有看到类似的代码。
这样如果为了贯彻面向接口编程的思路,可能就需要自己再写一个IOrderDao,OrderDao也需要改动代码了。
请问如何应对类似的问题呢?
this will bring easy to use concurrent query.
如题。操作系统为 OS X。
When the project is website. The project directory can't be resolve correctly. The issue i found just make a little adjust. So it can be fix.
Please see like below. '
File:
DefaultConnectionString
Fixed Code:
String filepath = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, configPath);
using (var stream = new FileStream(filepath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
为何事务在DAO层处理呢?我们现在的SSI框架都是使用spring提供的声明式事务管理。DAL如何结合spring框架进行事务管理呢?好的框架和系统开源一般会拥抱类似spring等框架。在应该用系统开发中如何使用dal与其他系统结合?看demo都是直接使用dalclient进行调用的。谢谢,期待你的回复!
异常信息为:
警告: WebApplicationException cause: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT id, name, provider, shardingStrategy, groupId, update_user_no, update_time FROM databaseSet WHERE name = ?]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'dal.databaseSet' doesn't exist at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:231) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:658) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:693) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:725) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:735) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:785) at com.ctrip.platform.dal.daogen.dao.DaoOfDatabaseSet.getAllDatabaseSetByName(DaoOfDatabaseSet.java:31) at com.ctrip.platform.dal.daogen.resource.DalGroupDbResource.genDefaultDbset(DalGroupDbResource.java:330) at com.ctrip.platform.dal.daogen.resource.DalGroupDbResource.add(DalGroupDbResource.java:162) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:195) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:353) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:343) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:255) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:267) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:318) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:235) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:983) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:359) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:372) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:218) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.ctrip.platform.dal.daogen.filter.UserFilter.doFilter(UserFilter.java:45) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2522) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2511) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'dal.databaseSet' doesn't exist
问题是 databaseSet 表名称与同步脚本:文件 script.sql 不一致
script.sql中名称为:databaseset 、 databasesetentry 等等。
请排查、谢谢!!!
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'mode_type' in 'field list'
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
java.lang.reflect.Constructor.newInstance(Constructor.java:423)
com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
com.mysql.jdbc.Util.getInstance(Util.java:408)
com.mysql.jdbc.SQLError.createSQLException(SQLError.java:944)
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3933)
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3869)
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2524)
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2675)
com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2465)
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1912)
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2020)
com.ctrip.platform.dal.dao.datasource.jdbc.DalPreparedStatement.lambda$executeQuery$0(DalPreparedStatement.java:30)
com.ctrip.platform.dal.dao.datasource.jdbc.DalConnection.innerExecute(DalConnection.java:411)
com.ctrip.platform.dal.dao.datasource.jdbc.DalStatement.innerExecute(DalStatement.java:307)
com.ctrip.platform.dal.dao.datasource.jdbc.DalStatement.executeStatement(DalStatement.java:314)
com.ctrip.platform.dal.dao.datasource.jdbc.DalPreparedStatement.executeQuery(DalPreparedStatement.java:30)
com.ctrip.platform.dal.dao.client.DalDirectClient$10.call(DalDirectClient.java:548)
com.ctrip.platform.dal.dao.client.DalDirectClient$10.call(DalDirectClient.java:546)
com.ctrip.platform.dal.dao.client.DalDirectClient.execute(DalDirectClient.java:599)
com.ctrip.platform.dal.dao.client.DalDirectClient.executeQuery(DalDirectClient.java:546)
com.ctrip.platform.dal.dao.client.DalDirectClient.access$100(DalDirectClient.java:30)
com.ctrip.platform.dal.dao.client.DalDirectClient$1.execute(DalDirectClient.java:73)
com.ctrip.platform.dal.dao.client.DalConnectionManager._doInConnection(DalConnectionManager.java:188)
com.ctrip.platform.dal.dao.client.DalConnectionManager.doInConnection(DalConnectionManager.java:165)
com.ctrip.platform.dal.dao.client.DalDirectClient.doInConnection(DalDirectClient.java:483)
com.ctrip.platform.dal.dao.client.DalDirectClient.query(DalDirectClient.java:91)
com.ctrip.platform.dal.dao.task.FreeSqlQueryTask.execute(FreeSqlQueryTask.java:21)
com.ctrip.platform.dal.dao.task.DalSqlTaskRequest$SqlTaskCallable.execute(DalSqlTaskRequest.java:428)
com.ctrip.platform.dal.dao.task.DalSqlTaskRequest$SqlTaskCallable.call(DalSqlTaskRequest.java:334)
com.ctrip.platform.dal.dao.task.RequestTaskWrapper.call(RequestTaskWrapper.java:39)
com.ctrip.platform.dal.dao.task.DalRequestExecutor.nonCrossShardExecute(DalRequestExecutor.java:245)
com.ctrip.platform.dal.dao.task.DalRequestExecutor.internalExecute(DalRequestExecutor.java:219)
com.ctrip.platform.dal.dao.task.DalRequestExecutor.execute(DalRequestExecutor.java:203)
com.ctrip.platform.dal.dao.DalQueryDao.query(DalQueryDao.java:140)
com.ctrip.platform.dal.dao.DalQueryDao.query(DalQueryDao.java:130)
com.ctrip.platform.dal.daogen.dao.DalGroupDBDao.getGroupDBsByGroup(DalGroupDBDao.java:76)
com.ctrip.platform.dal.daogen.resource.DalGroupDbResource.getGroupUsers(DalGroupDbResource.java:74)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205)
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)
org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
org.glassfish.jersey.internal.Errors.process(Errors.java:315)
org.glassfish.jersey.internal.Errors.process(Errors.java:297)
org.glassfish.jersey.internal.Errors.process(Errors.java:267)
org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)
org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)
org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
com.ctrip.platform.dal.daogen.filter.UserFilter.doFilter(UserFilter.java:53)
version 2.2.11 Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/ctrip/framework/dal/cluster/client/base/ComponentOrdered
开源版本与携程在用版本是否一致?
出现了 Unable to create initial connections of pool. 但是测试数据库连接时没有错误发生, setup DataBase的时候出现了 can not connection from db dao,请问下这是什么原因造成的呢?
请问insert操作如何返回插入的ID?
首次安装后,提示连接失败,查看日志提示Unable to create initial connections of pool.
Datasource[name=dao, Driver=null] created.
但是数据库配置文件是没错的
<Datasource name="dao" userName="root" password="123456" connectionUrl="jdbc:mysql://127.0.0.1:3306/CodeGen" driverClassName="com.mysql.jdbc.Driver"/>
请问数据库分片处理后,数据库的查询需要做什么特殊的处理吗??
在文档中没有看到这部分的说明。
例如:
携程
http://www.ctrip.com/
想问下,如果一个业务操作需要事务,涉及到A,B,C三个表。这三个表的修改都只在同一个分片shard_0中。此时,如何处理事务呢?是否可以用DalTransactional注解?
解决办法:
CREATE TABLE api_list
(
id
INT (11) NOT NULL AUTO_INCREMENT
,language
VARCHAR(45) NULL DEFAULT NULL
,db_type
VARCHAR(45) NULL DEFAULT NULL
,crud_type
VARCHAR(45) NULL DEFAULT NULL
,method_declaration
VARCHAR(200) NULL DEFAULT NULL
,method_description
TEXT NULL
,sp_type
VARCHAR(45) NULL DEFAULT NULL
,PRIMARY KEY (id
)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
我不想用默认的目录
公司的数据库主要是Oracle,想把Dal的C# Client扩展一下来支持Oracle,请问怎么做?有文档么?
CodeGen中 C#生成代码的方法较少,java较多,是对C#的未完全开放吗?
项目中使用dal之后必须接入dal.xml/datasource.xml这2个配置文件,而且其中的密码都必须是明文的,有好的方式解决这个问题吗?
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:11 min
[INFO] Finished at: 2016-09-30T04:06:07-04:00
[INFO] Final Memory: 11M/234M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project dao-gen-core: Could not resolve dependencies for project com.ctrip.platform:dao-gen-core:jar:1.0.5: Could not find artifact com.microsoft.sqlserver:sqljdbc:jar:4.0.2206 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
rt
是否支持基于mybatis的分库分表等
毕竟现在ssm是主流了
谢谢
when executing mvn clean install, it throws errors: can not resolve parent POM for com.ctrip.platform:dal-client-parent:2.2.2. So what is the repository for DAL?
五月 30, 2018 1:46:32 下午 org.apache.tomcat.jdbc.pool.ConnectionPool init
严重: Unable to create initial connections of pool.
java.sql.SQLException
at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:254)
at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
at com.ctrip.platform.dal.dao.datasource.tomcat.DalConnectionPool.createConnection(DalConnectionPool.java:27)
at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:486)
at org.apache.tomcat.jdbc.pool.ConnectionPool.(ConnectionPool.java:144)
at com.ctrip.platform.dal.dao.datasource.tomcat.DalConnectionPool.(DalConnectionPool.java:20)
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.ctrip.platform:dal-client-parent:2.1.13: Failure to find com.ctrip.framework:framework-parent:pom:1.12.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ com.ctrip.platform:dal-client-parent:2.1.13, /projects/dal/pom.xml, line 6, column 13
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.ctrip.platform:dal-client:[unknown-version] (/projects/dal/dal-client/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.ctrip.platform:dal-client-parent:2.1.13: Failure to find com.ctrip.framework:framework-parent:pom:1.12.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ com.ctrip.platform:dal-client-parent:2.1.13, /projects/dal/pom.xml, line 6, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
这是我跟着部署说明到dal-client 中执行mvn clean install 报的信息 说是没有parent 于是我就切换到parent 执行了mvn clean install 接着报还报没有parent
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.ctrip.platform:dal-client-parent:2.1.13: Failure to find com.ctrip.framework:framework-parent:pom:1.12.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 6, column 13
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.ctrip.platform:dal-client-parent:2.1.13 (/projects/dal/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.ctrip.platform:dal-client-parent:2.1.13: Failure to find com.ctrip.framework:framework-parent:pom:1.12.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 6, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
有没有大佬给指定下
StatementCallback; bad SQL grammar [select en.id, en.name, en.databaseType, en.sharding, en.connectionString, en.databaseSet_Id, en.update_user_no, en.update_time from databasesetentry as en join databaseSet as se on en.databaseSet_Id = se.id where se.name = 'meipinset' and en.databaseType = 'Master' limit 1;]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'dal.databaseSet' doesn't exist
databaseset这个表在数据库全是小写的
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.