我正在使用maven和Jboss 7开发一个Web应用程序,其中包含3个模块ejb Ear和war,因此war将把ejb作为依赖项,而ejb将同时成为ear的一个模块,所以当我这样做时,我得到了这棵树上有两次相同的 ejb
ear
...Mywar
........Myejb
...Myejb
Run Code Online (Sandbox Code Playgroud)
这个结构是正确的还是我应该改变另一个
战争的 pom.xml :
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>tn.war.ep</groupId>
<artifactId>businessModule</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
.....
<dependency>
<groupId>tn.linckia.epgp</groupId>
<artifactId>ejbModule</artifactId>
<version>0.0.1-SNAPSHOT</version>
<type>ejb</type>
</dependency>
</dependencies>
</project>
Run Code Online (Sandbox Code Playgroud)
耳朵的 pom.xml :
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>tn.war.ep</groupId>
<artifactId>earModule</artifactId>
<version>0.0.1</version>
<packaging>ear</packaging>
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>2.6</version>
<configuration>
<modules>
<webModule>
<groupId>tn.war.ep</groupId>
<artifactId>businessModule</artifactId>
<bundleFileName>businessModule.war</bundleFileName>
<contextRoot>/businessModule</contextRoot>
</webModule>
<ejbModule>
<groupId>tn.war.ep</groupId>
<artifactId>ejbModule</artifactId>
<bundleFileName>ejbModule.jar</bundleFileName>
</ejbModule>
</modules>
<displayName>Security</displayName>
</configuration>
</plugin>
</plugins> …Run Code Online (Sandbox Code Playgroud) 我已经制作了一个带有弹簧,弹簧安全性的mavenized Web应用程序......现在,我想添加ejb模块进行数据库访问,我正在互联网上查找,但我没有找到清楚的东西,因为这是我第一次使用EJB.我想在我的控制器中使用@EJB之类的东西,比如"
@Stateless(name = "CustomerServiceImpl")
public class CustomerServiceImpl implements CustomerService
@EJB
private MyEjb myEjb;
Run Code Online (Sandbox Code Playgroud)
如果有教程或任何其他帮助,我如何在spring上下文中配置它.这将是伟大的,谢谢你
我是Openssl的新手,我生成了一个私钥myprivatekey.pem和一个publickey mypublickey.pem:
openssl ecparam -genkey -name secp160k1 -noout -out myprivatekey.pem
Run Code Online (Sandbox Code Playgroud)
和我的公钥:
openssl -ec -in myprivatekey.pem -pubout -out mypublickey.pem
Run Code Online (Sandbox Code Playgroud)
我接下来要做的是用密码私钥加密我的ecdsa并为我的公钥发出认证请求,谢谢你的帮助.
我是android新手...我希望在所有教程中都有一个底部动作栏的简单活动它提到有一种方法
android:uiOptions=”splitActionBarWhenNarrow”
Run Code Online (Sandbox Code Playgroud)
但即使我添加,它也无法在平板电脑或小型设备上运行
<meta-data android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
Run Code Online (Sandbox Code Playgroud)
这是我的manifest.xml
<application
android:allowBackup="true"
android:icon="@drawable/logo"
android:label="@string/app_name"
android:theme="@style/AppTheme"
>
<activity
android:name=".launchActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:uiOptions="splitActionBarWhenNarrow"
android:name=".MainActivity"
>
<meta-data android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
<activity
android:name=".DisplayMessageActivity"
android:label="@string/title_activity_display_message" >
</activity>
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
</application>
Run Code Online (Sandbox Code Playgroud)
构建文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "xxxxxxx"
minSdkVersion 14
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
} …Run Code Online (Sandbox Code Playgroud)