小编Noa*_*oah的帖子

IntelliJ IDEA - 地址localhost:1099已在使用中

我尝试使用IntelliJ IDEA启动Web应用程序,但是我收到错误:localhost:1099 already in use.

端口1099已在使用中

我检查了端口1099 lsof -i:1099和许多其他相关命令,所以我很确定端口1099是免费的.

这是我的运行配置:

CONFIGS

我也改为JMX port6666和6667&6668 ......它不起作用,所以我认为它与端口本身并没有关系.

我很困惑......还有其他人有这个问题吗?

任何帮助表示赞赏

tomcat intellij-idea

16
推荐指数
7
解决办法
2万
查看次数

用打字稿反应组件子类型检查

这是场景:

我有一个自定义组件:

class MyComponent extends React.Component {
  render () {
    return (
      <SuperComponent>
        <SubComponent1 />  // <- valid child
      </SuperComponent>
    )
}

class MyComponent extends React.Component {
  render () {
    return (
      <SuperComponent>
        <SubComponent2 />  // <- No! It's not right shape
      </SuperComponent>
    )
}
Run Code Online (Sandbox Code Playgroud)

以及引用的SuperComponent和SubComponent1是:

interface superPropsType = {
  children: ReactElement<subPropsType1>
}
class SuperComponent extends React.Component<superPropsType> { ... }


interface subPropsType1 = {
  name: string
}
class SubComponent1 extends React.Component<subPropsType1> { ... }


interface subPropsType2 = {
  title: string …
Run Code Online (Sandbox Code Playgroud)

typescript reactjs tsx

5
推荐指数
1
解决办法
1629
查看次数

标签 统计

intellij-idea ×1

reactjs ×1

tomcat ×1

tsx ×1

typescript ×1