小编Ser*_*mir的帖子

谷歌android映射api v2显示标记标题始终

我在我的Android应用程序中有一个谷歌地图v2和一些标记.当用户单击其中一个标记时,会出现标题弹出窗口.如何在没有用户点击的情况下显示这些标题?

java android google-maps google-maps-markers google-maps-android-api-2

36
推荐指数
4
解决办法
5万
查看次数

Spring数据mongodb审计无法正常工作..(Java配置)

我目前正在使用Spring数据mongodb 1.6.0-RELEASE,我知道它有审计功能.我把@EnableMongoAuditing注释放在我的配置类之上.我的豆子在下面:

@Document
public class MyBean{

@Id
private AnotherCustomBean anotherCustomBean = new AnotherCustomBean();

@CreatedDate
private Date creationDate;

@LastModifiedDate
private Date lastModifiedDate;

.
.
.
Run Code Online (Sandbox Code Playgroud)

当我保存这个bean时,mongoTemplate.save(myBean);它没有设置创建日期和上次修改日期......并且它没有错误.

任何帮助,将不胜感激,

谢谢.

java spring spring-mvc mongodb spring-data-mongodb

11
推荐指数
1
解决办法
3738
查看次数

Spring数据mongodb存储库findAll字段排除

我对spring数据mongodb存储库有一个奇怪的问题..我想从我的findAll请求中排除一个字段.我怎样才能做到这一点?

这非常有效:

@Query(fields = "{'objectContentAsJson':0}")
Page<ObjectHistory> findByObjectIdAndServiceIgnoreCase( String objectId, String service, Pageable pageable );
Run Code Online (Sandbox Code Playgroud)

但没有机会findAll:

@Query(fields = "{'objectContentAsJson':0}")
Page<ObjectHistory> findAll( Pageable pageable );
Run Code Online (Sandbox Code Playgroud)

抛出:

引起:org.springframework.data.mapping.PropertyReferenceException:找不到类型为ObjectHistory的属性findAll!org.springframework.data.mapping.PropertyPath.(PropertyPath.java:75)位于org.springframework.data.mapping.PropertyPath.create的org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:327) PropertyPath.java:307)org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:270)org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:241)atg.springframework.data .repository.query.parser.Part.(Part.java:76)

java spring repository mongodb spring-data-mongodb

9
推荐指数
1
解决办法
4143
查看次数

Mysql Workbench Can't Select Foreign Key

First of all I've examined a lot of questions and googled it a lot, none of them solved my problem..

I'm creating my tables by using Mysql Workbench 6.3. I've created them by using only gui not a single query. After that I've tried to create some foreign keys for int(11) columns but GUI is not allowing me to do so.

Here's my Show Create Table 'tableName'

CREATE TABLE `item` (
  `id` int(11) NOT NULL,
  `description` varchar(300) NOT NULL,
  `maker` …
Run Code Online (Sandbox Code Playgroud)

mysql mysql-workbench mysql-error-1064

6
推荐指数
2
解决办法
4882
查看次数

帐户-UI在登录期间挂载时挂起

accounts-*在我的应用程序中使用了一些包.在第一次它没有任何问题.然后我把它提交给github并从其他地方撤出.

之后,我无法使用任何accounts-*软件包登录,包括facebook,密码,github,google等.

请注意,我已经重置了我的mongodb.还成功配置了每个服务的所有应用程序信息,我没有自动发布不安全的软件包

我以为我会在出版物和订阅方面遇到问题.但它在我的github推动之前工作......

一些调试信息:

Meteor.loginWithFacebook()
undefined
Meteor.logout()
undefined
Meteor.loggingIn()
true // it's always true 
Run Code Online (Sandbox Code Playgroud)

它会挂起每个服务(包括密码)登录请求,例如:

在此输入图像描述

任何帮助,将不胜感激,

谢谢 !

更新:我意识到我的反应性消失了.每当我更改模板(.html文件)时,它都不刷新浏览器...但是如果我打开一个新的流星项目,所有反应都在起作用..

我怀疑这些问题是相关的.

javascript meteor

6
推荐指数
1
解决办法
121
查看次数

Spring MongoDB数据无法使用"find"查询获取@DBRef对象

有一个对象是经典的POJO,如下所示:

@Document
public class MyPojo {
  @DBRef
  @Field("otherPojo")
  private List<OtherPojo> otherPojos;
}
Run Code Online (Sandbox Code Playgroud)

而且OtherPojo.java:

public class OtherPojo{
  @Id
  private ObjectId _id;
  private String someOtherFields;
}
Run Code Online (Sandbox Code Playgroud)

我不能级联保存这些,但我通过首先保存DBRefs然后保存我的POJO列表来克服它,但仍然当我尝试获取所有列表或使用以下代码查询其中一些时:

Query query = new Query( Criteria.where( "myPojo.blabla" ).is( "blabla" ) );
List<MyPojo> resultList = mongoTemplate.find( query, MyPojo.class, "myCollection" );
Run Code Online (Sandbox Code Playgroud)

它返回一个null DBrefs列表,它计为true.例如:保存了10个DBRef,它返回10个空对象,但其原始类型和其他不是DBRref的类型都是非空的.我怎么处理这个?

我保存我的对象如下:

for (MyPojo pojo : somePojoList) {
    for (OtherPojo otherPojo : pojo.getOtherPojos()) {
        mongoTemplate.save(otherPojo, "myCollection");
    }
}

// ...

mongoTemplate.insert( myPojoList, "myCollection" );
Run Code Online (Sandbox Code Playgroud)

编辑:好的,现在我知道如果我在保存otherPojos时没有指定集合名称,我可以获取它们(感谢@ jmen7070).但我必须在那里写myCollection,因为我总是掉线并重新创建它们.这是一个用例.那么我怎么能说"找到使用相同集合来获取DBRefs的方法"呢?

java spring mongodb spring-data-mongodb

5
推荐指数
1
解决办法
9472
查看次数

在 ios 上进行代码签名时,无法在 Codemagic 上创建身份验证会话

我觉得我错过了一些东西,但不能确定。我正在尝试将 codemagic 的自动代码签名功能用于 IOS 应用商店发布。

但是在构建过程中它会打印;

> /usr/local/bin/flutter build ios --release --no-codesign

Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Run Code Online (Sandbox Code Playgroud)

并在出版期间打印;

"Error Domain=ITunesSoftwareServiceErrorDomain Code=-22020 \"We are unable to create an authentication session.\" UserInfo={NSLocalizedDescription=We are unable to create an authentication session., NSLocalizedFailureReason=Unable to validate your application.}"
Run Code Online (Sandbox Code Playgroud)

我正在启用应用商店连接,选择自动代码签名并选择应用商店来配置配置文件类型。而且我确定我的 ID 和其他字段是正确的。

任何帮助,将不胜感激。

flutter codemagic

4
推荐指数
1
解决办法
1753
查看次数

IOS - ObjC Google Maps Api Key

我只是按照这里提到的做了一切,但Xcode仍然给出了这个错误:

  Google Maps SDK for iOS cannot connect or validate APIKey: Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. (com.google.HTTPStatus error 400.)" UserInfo=0x8416b20 {data=<CFData 0x9187710 [0x27424d8]>{length = 145, capacity = 256, bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}}
2013-09-01 15:04:04.902 MyApp[1357:12e03] Your key may be invalid for your bundle ID: MyBundleID
Run Code Online (Sandbox Code Playgroud)

所以我用Google搜索并得到了这些:第一个结果, 第二个结果,从现在开始它就开始变得无聊了.有没有办法让这个邮件更快,或者我还做错了什么?

iphone google-maps objective-c ios google-maps-sdk-ios

3
推荐指数
1
解决办法
5087
查看次数