我在设置xDocklet并遇到此错误时遇到了一些麻烦.
从存储库解析插件'xdoclet:maven2-xdoclet2-plugin'的版本时出错
<pluginRepositories>
<pluginRepository>
<id>codehaus-plugins</id>
<url>http://dist.codehaus.org/</url>
<layout>legacy</layout>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
<plugin>
<groupId>xdoclet</groupId>
<artifactId>maven2-xdoclet2-plugin</artifactId>
<executions>
<execution>
<id>xdoclet</id>
<phase>generate-sources</phase>
<goals>
<goal>xdoclet</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>xdoclet-plugins</groupId>
<artifactId>xdoclet-plugin-qtags</artifactId>
<version>1.0.4-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>xdoclet-plugins</groupId>
<artifactId>xdoclet-taglib-qtags</artifactId>
<version>1.0.4-SNAPSHOT</version>
</dependency>
</dependencies>
<goals>
<goal>xdoclet</goal>
</goals>
<configuration>
<configs>
<config>
<components>
<component> <classname>org.xdoclet.plugin.qtags.impl.QTagImplPlugin</classname>
</component>
<component>
<classname>org.xdoclet.plugin.qtags.impl.QTagLibraryPlugin</classname>
<params> <packagereplace>org.xdoclet.plugin.${xdoclet.plugin.namespace}.qtags</packagereplace>
</params>
</component>
<component>
<classname>org.xdoclet.plugin.qtags.doclipse.QTagDoclipsePlugin</classname>
<params>
<filereplace>qtags.xml</filereplace>
<namespace>${xdoclet.plugin.namespace}</namespace>
</params>
</component>
<component>
<classname>org.xdoclet.plugin.qtags.confluence.QTagConfluencePlugin</classname>
<params>
<destdir>${project.build.directory}/tag-doc</destdir>
<namespace>${xdoclet.plugin.namespace}</namespace> <filereplace>${xdoclet.plugin.namespace}.confluence</filereplace>
</params>
</component>
</components>
<includes>**/*.java</includes>
<params>
<destdir>${project.build.directory}/generated-resources/xdoclet</destdir>
</params>
</config>
</configs>
</configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)
我的一些问题. …
我想使用 Mootools 为我的 php 应用程序创建一个选项卡视图。我有n
许多从 php 脚本创建的选项卡。我的看法如下。
<div>
<ul id="1">
<li>Popular</li>
<li>New Addition</li>
</ul>
</div>
<div>
<ul id="2">
<li>Popular</li>
<li>New Addition</li>
</ul>
</div>
...
<div>
<ul id="n">
<li>Popular</li>
<li>New Addition</li>
</ul>
</div>
Run Code Online (Sandbox Code Playgroud)
如何active
根据每个选项卡上Populalar
或下的点击应用样式类。New Addition
谢谢
我有一个叫做储蓄账户的子类。我希望 Savingaccount 中的方法 (addInterest) 引用名为 balance 的超类中的字段。它说余额具有私人访问权限。我该如何解决这个问题?我不允许将超类中的字段设置为私有以外的任何其他字段。任何帮助表示赞赏。这是储蓄账户中的方法。
public void addInterest()
{
deposit(balance * interestRate / 100);
}
Run Code Online (Sandbox Code Playgroud) 例如,我需要我的ArrayList应该在每个索引处包含hashmap,例如
Public class Testing { private ArrayList < < HashMap< String, String>> myData ; public static void main(String[] args) { myData = new ArrayList < HashMap < String, String>>(); initialize(); //After initialize myData should contain different Hashmaps. } public static void initialize() { for (int i= 0; i < 10 ;i++) { myMap = new HashMap(); //Bad because,creating Objects inside the loop. myMap.put("title", "abc"+i); //Adding i, just to show that new values are stored everytime myMap.put("name", "xyz"+i); myData.add(myMap); } …
我想制作一个音乐播放器,我有一个问题,即吐司文件名,因为它总是包含扩展名(".mp3")
有谁知道如何删除这些扩展名?
这是我的代码
try {
if (mMediaPlayer.isPlaying()) {
mMediaPlayer.reset();
}
mMediaPlayer.setDataSource(filename);
mMediaPlayer.prepare();
mMediaPlayer.start();
Toast.makeText(getApplicationContext(), nama , Toast.LENGTH_LONG).show();
} catch (Exception e) {
}
Run Code Online (Sandbox Code Playgroud)
和
music_column_index=
musiccursor.getColumnIndexOrThrow(MediaStore.Audio.Media.DISPLAY_NAME);
musiccursor.moveToPosition(position);
nama = musiccursor.getString(music_column_index);
Run Code Online (Sandbox Code Playgroud)
我想让它干杯"xx"而不是"xx.mp3"
Connection connection = newConnection.createConnection();
Statement newStat = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
ResultSet res = newStat.executeQuery("SELECT contactName FROM Contact WHERE accountName='"+m+"'");
Vector<String> temp = new Vector<String>();
//res.first();
while (res.next()){
temp.add(res.getString("contactName"));
}
newStat.close();
connection.close();
customerContactList = new JList(temp);
repaint();
Run Code Online (Sandbox Code Playgroud)
我有一个带有帐户名称的Jlist,当选择一个帐户时,旁边有一个按钮,必须按下该按钮才能调用上面的代码.代码应该获取与该帐户关联的联系人姓名并将其填充到JList中.这不会发生.Jlist保持空白,我调试并且向量temp确实得到3个值并将它们存储到新的jlist中,问题是,JList不刷新.
我怎样才能刷新?
非常感谢,我感谢任何帮助.注:Kunal
我目前正在用java编写计算器程序.这是我的第一个java程序,我习惯于c ++.
我注意到java中的双打完全不像c ++中的双打.在java和c ++
4.1*3
中尝试这个/ .1
它应该是
12.3然后123,并且c ++给出了这个结果但java给出了
12.299999999999999和122.99999999999999
我怎么能像在c ++中使用双打一样进行数学运算,我知道你在程序中使用12.299999999999999的任何东西都不会与12.3相比没有区别,但是当用户正在阅读数字时,这非常难看.我已经查看了BigDecimal类,但我无法对该类执行trig和logarithms等等
注释的Spring MVC控制器是否也可以使用@ Component/@ Service类型的注释进行注释,并且既可以用作控制器,也可以用作bean?
这是我如何定义我的jsp文件的loaction:
<bean id="jspViewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass"
value="org.springframework.web.servlet.view.JstlView" />
<property name="prefix" value="/WEB-INF/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
Run Code Online (Sandbox Code Playgroud)
但是我目前在一个文件夹中有太多的JSP文件......我将我的直接结构改为:
/WEB-INF/jsp/city/*.jsp
/WEB-INF/jsp/weather/*.jsp
Run Code Online (Sandbox Code Playgroud)
我该如何更改我的viewresolver以便找到这两个地方?
如果需要,请询问更多信息.
java ×8
spring ×3
android ×2
javascript ×2
spring-mvc ×2
c++ ×1
calculator ×1
controller ×1
hibernate ×1
html ×1
jframe ×1
jlist ×1
jsp ×1
math ×1
maven-2 ×1
mootools ×1
performance ×1
refresh ×1
vector ×1