我的问题与以下已经出现的Stackoverflow问题有关......我问这个问题只是为了更具体并得到最新的建议,请原谅我,如果你发现它是一个重复的问题.. Facebook连接问题和使用Spring安全问题登录
目前我正在开展一项任务,要求我处理开放式登录支持.我在这个应用程序中使用了Spring Security 3.0.5.成功地为一组开放的Id提供商(gmail,yahoo,myopenid,openid,aol,wordpress,blogger,livejournal等)提供了身份验证支持.接下来,我想为facebook,twitter,linkedin和live(msn)这四个大牌提供支持.
在一个单独的演示应用程序中,我与Spring Social发生了浪漫关系,提供了facebook登录并在那里取得了一些成功.类似的步骤可用于链接和Twitter登录.但由于我在原始项目中使用Spring Security处理登录,因此我希望仅使用Spring安全性来实现facebook,twitter,linkedin和实时登录.并且遗憾的是没有得到关于此的更多信息.
任何关于此的教程或来源都会有所帮助......
编辑1:刚刚遇到Spring Security Social ......在目前的状态下,这也不是一个理想的解决方案......
这是最烦人的错误之一?我能理解的是我使用较低版本的Java进行编译.如何为maven指定java版本?
无法执行目标org.apache.maven.plugins:maven-compiler-plugin:2.0.2:在项目上编译(默认编译)springAopMavenDemo:编译失败D:\ JAVA Stuffs\projects\springAopMavenDemo\src\main\java\service\EmployeeServiceImpl.java:-source 1.3中不支持[13,1]注释(使用-source 5或更高版本来启用注释)@Service - > [Help 1]
要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven.使用-X开关重新运行Maven以启用完整的调试日志记录.
有关错误和可能的解决方案的更多信息,请阅读以下文章:[帮助1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
我非常感谢任何帮助......我正在使用NetBeans 7.0和Maven 3
我正在开发一个基于 Spring 3.0.2 的项目。从过去三天开始,它显示以下错误。
java.lang.IllegalArgumentException:警告与此类型名称不匹配:UserDaoImpl [Xlint:invalidAbsoluteTypeName]
我该如何解决这个错误?
我的 applicationContext 文件是:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd">
<aop:aspectj-autoproxy/>
<context:component-scan base-package="web"/>
<!-- <import resource="appicationContext.xml"/> -->
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver"
p:prefix="jsp/" p:suffix=".jsp" />
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" />
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
<bean id="sessionFactory" class="hibernatefiles.HibernateUtil" factory-method="getSessionFactory"/>
<bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<bean id="userDaoImpl" class="dao.UserDaoImpl"/>
<bean id = "profiler" class = "Profiler.AspectProfiler" />
<bean name="/userRegistration.htm" class="web.UserController" depends-on="userDaoImpl">
<property name="userDaoImpl" ref="userDaoImp"/>
</bean>
</beans>
Run Code Online (Sandbox Code Playgroud)
堆栈跟踪是:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name …Run Code Online (Sandbox Code Playgroud) 我创建了一个TextArea声明....
quest1Label = new TextArea();
Run Code Online (Sandbox Code Playgroud)
我正在使用TextArea显示Labels....所以我使用以下功能来设置其属性....
private void setTextAreaProperty(TextArea textArea) {
String textStr = textArea.getText();
if (textArea.getStyle().getFont().stringWidth(textStr) > (width - 25)) {
textArea.setSingleLineTextArea(false);
} else {
textArea.setSingleLineTextArea(true);
textArea.setPreferredW(width);
}
textArea.setBorderPainted(false);
textArea.setFocusable(false);
textArea.setStyle(getPreviewStyle());
}
Run Code Online (Sandbox Code Playgroud)
其中width = Display.getInstance().getDisplayWidth(); 我的问题是最多两行标签正常工作,但....如果文字更大,它不会到第三行.任何有关这方面的帮助将不胜感激.
提前致谢,....
我在我的一个HTML文件中使用以下代码
var queryURL = encodeURI(yahooUrl + loc + appId);
alert(queryURL);
$.getJSON(queryURL, function(data){
alert('inside getJSON')
alert(data);
var items = [];
$.each(data, function(key, value){
items.push('<li id="' + key + '">' + value + '</li>');
});
$('<ul/>', {
'class': 'my-new-list',
html: items.join('')
}).appendTo('body');
});`
Run Code Online (Sandbox Code Playgroud)
哪个queryURL是一个大的查询,如果我从浏览器的地址栏加载,我得到一个包含JSON对象的文件.但是下面的代码不起作用,整个JSON对象显示在Firefox的错误控制台上,错误"无效标签".我已经添加&callback=?了查询字符串的末尾,如SO中的一些答案所述.
谁能暗示我做错了什么?
编辑:for
queryURL = "http://where.yahooapis.com/geocode?location=107,South%20Market,San%20Jose,San%20Fransico,Leusina,USA,&flags=J&appid=dj0yJmk9SUk0NkdORm9qM2FyJmQ9WVdrOU1tVnFUVzlVTm5NbWNHbzlORFl4TnpZME5UWXkmcz1jb25zdW1lcnNlY3JldCZ4PWE1&callback=?"
我收到以下错误:
Error: invalid label
Source File: http://where.yahooapis.com/geocode?location=107,South%20Market,San%20Jose,San%20Fransico,Leusina,USA,&flags=J&appid=dj0yJmk9SUk0NkdORm9qM2FyJmQ9WVdrOU1tVnFUVzlVTm5NbWNHbzlORFl4TnpZME5UWXkmcz1jb25zdW1lcnNlY3JldCZ4PWE1&callback=jQuery16404719878257064011_1316606312366&_=1316608283354
Line: 1, Column: 1
Run Code Online (Sandbox Code Playgroud)
源代码:
{"ResultSet":{"version":"1.0","Error":0,"ErrorMessage":"No error","Locale":"us_US","Quality":87,"Found":1,"Results":[{"quality":39,"latitude":"37.336849","longitude":"-121.847710","offsetlat":"37.338470","offsetlon":"-121.885788","radius":34800,"name":"","line1":"","line2":"San Jose, CA","line3":"","line4":"United States","house":"","street":"","xstreet":"","unittype":"","unit":"","postal":"","neighborhood":"","city":"San Jose","county":"Santa Clara County","state":"California","country":"United States","countrycode":"US","statecode":"CA","countycode":"","uzip":"","hash":"","woeid":2488042,"woetype":7}]}}
Run Code Online (Sandbox Code Playgroud) 我正在关注这个博客,在我的运行 ubuntu 11.10 的机器上使用 android ndk 设置 JNI...在这个程序中,我将 speex 与我现有的音频流应用程序集成。到目前为止一切正常,但当我集成 speex_echo_cancelation 时,事情被破坏了......现在我收到以下错误......有什么帮助吗?
jni/./libspeex/mdf.c:78:21: error: windows.h: No such file or directory
jni/./libspeex/mdf.c: In function 'speex_echo_cancellation':
jni/./libspeex/mdf.c:1195: error: invalid operands to binary + (have 'float' and 'spx_float_t')
jni/./libspeex/mdf.c:1216: error: invalid operands to binary + (have 'float' and 'spx_float_t')
make: *** [obj/local/armeabi/objs/speex/./libspeex/mdf.o] Error 1
Run Code Online (Sandbox Code Playgroud) 我在网站上停用了Google Chrome开发者工具.但是仍然可以使用以下方法访问它,
如何禁用此行为?如果Google Chrome开发者控制台已经打开,我如何关闭它?
javascript security google-chrome google-chrome-devtools web
如何在运行时在WIN32中更改窗口的背景图像?
我使用CreateWindow()创建了窗口.然后我有一个LoadImage按钮打开一个模型对话框(打开文件对话框)...现在我想使用此对话框返回的文件名作为窗口的图像.
我有一个Long变量说,
private Long m_prevPacketRecvdTime = null;
Run Code Online (Sandbox Code Playgroud)
现在我有一个setter/getter对,
public void setM_prevPacketRecvdTime() {
if (this.m_prevPacketRecvdTime == null) {
this.m_prevPacketRecvdTime = new Long(System.currentTimeMillis());
} else {
// Why to create a new Object every time
//Why I can't just set the new value
//Why use new operator here instead of an Assignment or set method call
}
}
Run Code Online (Sandbox Code Playgroud)
而不是传统的setter方法,我想改进它,通过1.传递long而不是Long,2.只创建一个新的Long,剩下的时间只是将新值设置为现有的Long对象.但令我难以置信的是,Long没有这样的方法.
我们是否真的需要在每次想要更改其值时创建一个新的Long对象,我们如何为现有的Long对象设置一个新的long值(与longvalue()相反)?
更多信息 在寻找答案的同时,我也遇到了具有类似功能的AtomicLong,但我不确定这对我是否有用.因为他们清楚地说AtomicLong" 不能用作Long的替代品 ".