我正在尝试在Windows上运行Kafka消息队列。
我全光照本教程- https://dzone.com/articles/running-apache-kafka-on-windows-os
当我尝试使用命令--。\ bin \ windows \ kafka-server-start.bat。\ config \ server.properties
我得到一个错误: 输入行太长。该命令的语法不正确。
卡夫卡位置-C:\ kafka_2.11-1.0.0
我从服务器收到了对象并尝试在表中显示其字段.所有字段都显示良好,但布尔值始终显示为"否".
<tr ng-repeat="u in ctrl.users">
<td><span ng-bind="u.id"></span></td>
<td><span ng-bind="u.name"></span></td>
<td><span ng-bind="u.age"></span></td>
<td><span ng-bind="u.isAdmin ? 'yes' : 'no'" ></span></td>
</tr>
Run Code Online (Sandbox Code Playgroud)
我试图添加过滤器,但结果是一样的.
我见过类似的问题,但在我的情况下它不起作用.我需要获得序列的下一个值.
型号类:
@Entity
@Table(name = "item")
public class Item {
@Id
@SequenceGenerator(name = "id_seq", sequenceName = "item_id_seq", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "id_seq")
@Column(name = "id", updatable = false)
protected Long id;
}
Run Code Online (Sandbox Code Playgroud)
Jpa存储库:
public interface ItemRepository extends JpaRepository<Item, Long> {
List<Item> findFirst10ByOrderByPublicationDateDesc();
@Query(value = "SELECT item_id_seq.nextval FROM item", nativeQuery =
true)
Long getNextSeriesId();
}
Run Code Online (Sandbox Code Playgroud)
我将不胜感激任何帮助.