我有一个简单的发票系统,需要在其中创建和更新发票。我试图为此使用Spring Data Rest,但是从我从文档中获得的信息来看,我实际上最终会做很多电话来实现更新。
@Entity
class Article {
@Id
@GeneratedValue
Long ID;
@Basic
String name;
}
@Entity
class Invoice {
@Id
@GeneratedValue
Long ID;
@Basic
String customer;
@OneToMany(cascade=CascadeType.ALL)
List<InvoiceItem> items;
}
@Entity
class InvoiceItem {
@Id
@GeneratedValue
Long ID;
@Basic
double amount;
@ManyToOne
private Article article;
}
Run Code Online (Sandbox Code Playgroud)
我正在使用Spring Data Rest通过这些Spring Data Rest / JPA存储库将此模型公开给我的Web朋友
@RepositoryRestResource(collectionResourceRel = "articles", path = "articles")
interface ArticleJPARepository extends JpaRepository<Article, Long> {}
@RepositoryRestResource(collectionResourceRel = "invoices", path = "invoices")
interface InvoiceJPARepository extends JpaRepository<Invoice, Long> {}
@RepositoryRestResource(collectionResourceRel = "invoiceitems", …Run Code Online (Sandbox Code Playgroud) 我安装了apache和php,现在使用ZendDebugger我修改了php.ini它是如何描述的.当我启动Apache时,我在日志中收到以下错误消息:
Failed loading /usr/lib/php5/zend/ZendDebugger.so: libssl.so.0.9.8: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)
我检查过,我的机器上只有libssl.so.1.0.0可用.
任何人都可以告诉我如何让ZendDebugger工作.
在此先感谢,最多