应用终止时出现操作不允许错误

时间:2020-04-19 10:33:56

标签: ios swift xcode llvm

每当我终止设备上的应用程序时,我就会在 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> <version>2.4.11</version> <scope>test</scope> </dependency> <dependency> <groupId>org.spockframework</groupId> <artifactId>spock-core</artifactId> <version>1.1-groovy-2.4</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-test</artifactId> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.codehaus.gmavenplus</groupId> <artifactId>gmavenplus-plugin</artifactId> <version>1.5</version> <executions> <execution> <goals> <goal>addTestSources</goal> <goal>testCompile</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.20</version> <configuration> <groups>com.microservices.accountservice.UnitTest</groups> <includes> <include>**/*Spec.java</include> <include>**/*Test.java</include> </includes> </configuration> </plugin> </plugins> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> </build> 中看到以下错误。

Scanner sc = new Scanner(System.in);

System.out.println("Enter year: (e.g., 2012): ");
int year = sc.nextInt();

System.out.println("Enter month: 1-12: ");
int month = sc.nextInt();
if(month < 3){
    month += 12;
    year -= 1; 
}

System.out.println("Enter the day of the month: 1-31: ");
int day = sc.nextInt();

//calculate the day using the forumla
int k = year % 100;
int j = year / 100;
int weekDay =  (day + (26 * (month + 1)) / 10 + k + k / 4 + j / 4 + (5 * j)) % 7;
System.out.println(weekDay);

我不明白为什么要得到这个?这会在我的应用程序中造成任何问题吗?

我尝试在Google上搜索并尝试了这些选项,但没有帮助。

下面是其他详细信息-:

1) Xcode版本-:11.3.1

2)设备操作系统版本-:13.3.1

3)设备-:iPhone XS Max

任何帮助将不胜感激。预先感谢。

0 个答案:

没有答案