-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
highflip-editor:init and add access log aop for web api #5
base: 1.0.0
Are you sure you want to change the base?
Conversation
2.add the convert of ListProto to java List and MapProto to java Map 3.modify the uuid strategy 4.register highflip runtime oject 5.complete HighFlipService 6.add highflip.adaptor.service.properties
@@ -30,7 +30,9 @@ spring.jpa.properties.jadira.usertype.autoRegisterUserTypes=true | |||
# h2 | |||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect | |||
spring.datasource.driver-class-name=org.h2.Driver | |||
spring.datasource.url=jdbc:h2:file:~/.highflip/db/highflip.db | |||
spring.datasource.url=jdbc:h2:file:~/.highflip/db/highflip | |||
spring.datasource.username=highflip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个地方不用加认证,本地文件数据库
@@ -73,5 +79,6 @@ void initialAdaptor() { | |||
void initialDefaultAdaptor() { | |||
DefaultAdaptor adaptor = new DefaultAdaptor(); | |||
adaptor.setup(register); | |||
register.register(InstanceNameList.HIGHFLIP_RUNTIME, highFlipRuntime); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
放到DefaultAdaptor初始化
@@ -608,4 +617,7 @@ service HighFlip{ | |||
rpc getPartner(PartnerId) returns(PartnerGetResponse); | |||
rpc listPartner(PartnerListRequest) returns(stream PartnerListResponse); | |||
rpc controlPartner(PartnerControlRequest) returns(Void); | |||
|
|||
// adaptor service config | |||
rpc getServiceConfig(Void) returns(GetServiceConfigResponse); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用getConfig是不是可以?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这块就不需要单独的接口了
highflip-editor/pom.xml
Outdated
<jmockit.version>1.43</jmockit.version> | ||
<guava.version>31.1-jre</guava.version> | ||
<spring.security.version>6.0.2</spring.security.version> | ||
</properties> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这些是不是可以继承父的工程属性,不需要单独设置
@@ -0,0 +1,10 @@ | |||
package com.baidu.highflip.core.adaptor; | |||
|
|||
public interface ServiceAdaptor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以考虑放到config中
@@ -32,8 +32,8 @@ | |||
public class Data { | |||
|
|||
@Id | |||
@Column(name = "data_id", length = 36) | |||
@GenericGenerator(name = "id_gen", strategy = "uuid2") | |||
@Column(name = "data_id", length = 72) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
长度是不是过长了
您好!我已收到您的邮件,我会尽快查看! 祝您生活愉快!
|
No description provided.